franko / Publications
Forum
How to limit EA to open only one position in specific currency pair
Hello, Does anyone have code for this? By searching google in previous topics I found something like this but it doesn't seem to work: for ( int k = 0 ; k < OrdersTotal (); k --) { OrderSelect (k, SELECT_BY_POS, MODE_TRADES); if (OrderType() <= OP_SELL && OrderSymbol() == Symbol ())
iCustom values
Hello, Im writing simple EA code: extern int MaxOpen= 1 ; extern double Lots = 1 ; extern double StopLoss = 1000 ; extern double TakeProfit = 1000 ; extern int TrailingStop = 0 ; extern int Slippage = 10 ; extern int MagicNumber = 10001 ; int EURLongUSD= 0 ; double x= iCustom
Custom indicator based on another indicator values
Hello, Would like to know is it possible to make custom indicator based on these calculations