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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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