Scripts: The scripts for opening short positions
The OpenBuyPosition script is buggy when SYMBOL_TRADE_STOPS_LEVEL=0 in the following code :
bool StopCorrect(string symbol,int &Stop) { //---- int Extrem_Stop=int(SymbolInfoInteger(symbol,SYMBOL_TRADE_STOPS_LEVEL)); if(!Extrem_Stop) return(false); MUST BE if(Extrem_Stop<0) return(false); if(Stop<Extrem_Stop) Stop=Extrem_Stop; //---- return(true); }Extrem_Stop is an int, not a bool.
There are assets that don't work with any of the 4 EA's, does anyone know how to correct this?
Too bad there's no time to place orders ((((
The scripts for opening short positions:
These scripts are designed to sell with fixed values of Stop Loss and Take Profit in points from the current price. There are four variants of scripts which can be divided into two groups:
Author: Nikolay Kositsin