I will test the ON Trade one and give feedback 
Posts made by semicon64
-
RE: How to implement Fill Or Kill (FOK)?Close all trades if trade x is closed?posted in Questions & Answers
-
How to implement Fill Or Kill (FOK)?Close all trades if trade x is closed?posted in Questions & Answers
Hey Guys,
Unfortunately I struggle implementing following:
I open a new buy trade with Group 1 and with Stop-Loss set to X.
If trade with group 2 is closed, close any further trade. (including remaining Group 1 trades)
So its not about when profit is reached nor when stoploss is reached. I only want to check when trades from group 2 are closed that automatically the trades of group 1 must also be closed.
After that the condition block on the left should restart (as my screenshot)
However the implementation is not working, I get a cycle error and it opens millions of new trades.
Here is a very simple example:
https://i.imgur.com/XJv0wQN.pngThe methods on the right standalone did not work, they do create a loop and open/close new trade every tick and the programm crashes.
Sincerely and thanks in advance!
-
RE: Condition Indicator 1 x> Indicator 2posted in Questions & Answers
@rafaelgrecco Can you give a more concrete example, how to do it with the indicators only instead of candles?
-
RE: Condition Indicator 1 x> Indicator 2posted in Questions & Answers
Thank you for the info.
So basicly could you give me little advise how I could implement it with the >x and <x one for my moving average example?
Sincerely
-
RE: Condition Indicator 1 x> Indicator 2posted in Questions & Answers
If it does not work with backtest, is there any way to simulate this kind of function?
I did not know that this extremely important condition does not work...
-
Condition Indicator 1 x> Indicator 2posted in Questions & Answers
Dear Team,
I got following easy condition:
https://i.imgur.com/XK2MyvK.png
When I use the x> , no trade is getting done.
When I use the >= it is not the one I am looking for. My condition should be that a trade should be done only once indicator 1 value crosses over indicator 2
Sincerely!
-
Simple Demo Fail MT5posted in Bug Reports
I tried to test following example:
Buy when there is no tradeAnd received via MT5 100 errors...?
Help!
'FirstExpert.mq5' FirstExpert.mq5 1 1
'OP_BUY' - undeclared identifier FirstExpert.mq5 3854 16
'OP_BUY' - constant expected FirstExpert.mq5 3854 16
'RefreshRates' - function not defined FirstExpert.mq5 300 30
'iTime' - function not defined FirstExpert.mq5 819 15
'TimeYear' - function not defined FirstExpert.mq5 842 20
'TimeMonth' - function not defined FirstExpert.mq5 842 44
'TimeDay' - function not defined FirstExpert.mq5 842 69
'TimeHour' - function not defined FirstExpert.mq5 843 20
'TimeMinute' - function not defined FirstExpert.mq5 843 45
'TimeSeconds' - function not defined FirstExpert.mq5 843 72
'TimeDayOfWeek' - function not defined FirstExpert.mq5 859 21
'SELECT_BY_POS' - undeclared identifier FirstExpert.mq5 533 27
'MODE_TRADES' - undeclared identifier FirstExpert.mq5 533 42
'OrderSelect' - wrong parameters count FirstExpert.mq5 533 10
'AccountBalance' - function not defined FirstExpert.mq5 973 27
'MODE_LOTSTEP' - undeclared identifier FirstExpert.mq5 981 37
'MarketInfo' - function not defined FirstExpert.mq5 981 19
'MODE_LOTSIZE' - undeclared identifier FirstExpert.mq5 982 37
'MarketInfo' - function not defined FirstExpert.mq5 982 19
'MODE_MINLOT' - undeclared identifier FirstExpert.mq5 983 37
'MarketInfo' - function not defined FirstExpert.mq5 983 19
'MODE_MAXLOT' - undeclared identifier FirstExpert.mq5 984 37
'MarketInfo' - function not defined FirstExpert.mq5 984 19
'MODE_MARGINREQUIRED' - undeclared identifier FirstExpert.mq5 985 45
'MarketInfo' - function not defined FirstExpert.mq5 985 27
'MODE_POINT' - undeclared identifier FirstExpert.mq5 1025 36
'MarketInfo' - function not defined FirstExpert.mq5 1025 18
'MODE_DIGITS' - undeclared identifier FirstExpert.mq5 1026 41
'MarketInfo' - function not defined FirstExpert.mq5 1026 23
'OP_BUYSTOP' - undeclared identifier FirstExpert.mq5 1034 16
'OP_BUYLIMIT' - undeclared identifier FirstExpert.mq5 1035 16
'OP_SELL' - undeclared identifier FirstExpert.mq5 1041 13
'OP_SELLSTOP' - undeclared identifier FirstExpert.mq5 1042 16
'OP_SELLLIMIT' - undeclared identifier FirstExpert.mq5 1043 16
'OP_SELL' - undeclared identifier FirstExpert.mq5 1053 30
'MODE_ASK' - undeclared identifier FirstExpert.mq5 1055 37
'MarketInfo' - function not defined FirstExpert.mq5 1055 19
'MODE_BID' - undeclared identifier FirstExpert.mq5 1056 37
'MarketInfo' - function not defined FirstExpert.mq5 1056 19
'MODE_STOPLEVEL' - undeclared identifier FirstExpert.mq5 1078 38
'MarketInfo' - function not defined FirstExpert.mq5 1078 20
'MODE_FREEZELEVEL' - undeclared identifier FirstExpert.mq5 1080 44
'MarketInfo' - function not defined FirstExpert.mq5 1080 26
'DoubleToStr' - function not defined FirstExpert.mq5 1102 13
'DoubleToStr' - function not defined FirstExpert.mq5 1117 13
'DoubleToStr' - function not defined FirstExpert.mq5 1119 13
'DoubleToStr' - function not defined FirstExpert.mq5 1121 13
'DoubleToStr' - function not defined FirstExpert.mq5 1123 13
'MODE_TICKSIZE' - undeclared identifier FirstExpert.mq5 1133 41
'MarketInfo' - function not defined FirstExpert.mq5 1133 22
'MODE_POINT' - undeclared identifier FirstExpert.mq5 1156 37
'MarketInfo' - function not defined FirstExpert.mq5 1156 19
'MODE_DIGITS' - undeclared identifier FirstExpert.mq5 1157 42
'MarketInfo' - function not defined FirstExpert.mq5 1157 24
'OP_BUYSTOP' - undeclared identifier FirstExpert.mq5 1164 16
'OP_BUYLIMIT' - undeclared identifier FirstExpert.mq5 1165 16
'OP_SELL' - undeclared identifier FirstExpert.mq5 1171 13
'OP_SELLSTOP' - undeclared identifier FirstExpert.mq5 1172 16
'OP_SELLLIMIT' - undeclared identifier FirstExpert.mq5 1173 16
'OP_SELL' - undeclared identifier FirstExpert.mq5 1183 30
'MODE_ASK' - undeclared identifier FirstExpert.mq5 1185 37
'MarketInfo' - function not defined FirstExpert.mq5 1185 19
'MODE_BID' - undeclared identifier FirstExpert.mq5 1186 37
'MarketInfo' - function not defined FirstExpert.mq5 1186 19
'MODE_STOPLEVEL' - undeclared identifier FirstExpert.mq5 1208 38
'MarketInfo' - function not defined FirstExpert.mq5 1208 20
'MODE_FREEZELEVEL' - undeclared identifier FirstExpert.mq5 1210 44
'MarketInfo' - function not defined FirstExpert.mq5 1210 26
'DoubleToStr' - function not defined FirstExpert.mq5 1231 13
'DoubleToStr' - function not defined FirstExpert.mq5 1246 13
'DoubleToStr' - function not defined FirstExpert.mq5 1248 13
'DoubleToStr' - function not defined FirstExpert.mq5 1250 13
'DoubleToStr' - function not defined FirstExpert.mq5 1252 13
'MODE_TICKSIZE' - undeclared identifier FirstExpert.mq5 1261 41
'MarketInfo' - function not defined FirstExpert.mq5 1261 22
'SELECT_BY_POS' - undeclared identifier FirstExpert.mq5 1371 29
'MODE_TRADES' - undeclared identifier FirstExpert.mq5 1371 44
'OrderSelect' - wrong parameters count FirstExpert.mq5 1371 12
'OrderMagicNumber' - function not defined FirstExpert.mq5 1372 11
'OrderSymbol' - function not defined FirstExpert.mq5 1373 11
implicit conversion from 'number' to 'string' FirstExpert.mq5 1373 11
'OrderOpenTime' - function not defined FirstExpert.mq5 1374 27
'OrderExpiration' - function not defined FirstExpert.mq5 1375 7
'OrderExpiration' - function not defined FirstExpert.mq5 1375 32
'OrderCloseTime' - function not defined FirstExpert.mq5 1375 53
'OrderLots' - function not defined FirstExpert.mq5 1378 15
'OrderClosePrice' - function not defined FirstExpert.mq5 1381 16
'OrderOpenPrice' - function not defined FirstExpert.mq5 1381 34
'OrderSymbol' - function not defined FirstExpert.mq5 1382 53
implicit conversion from 'number' to 'string' FirstExpert.mq5 1382 53
'OrdersHistoryTotal' - function not defined FirstExpert.mq5 1397 13
'SELECT_BY_POS' - undeclared identifier FirstExpert.mq5 1400 31
'MODE_HISTORY' - undeclared identifier FirstExpert.mq5 1400 46
'OrderSelect' - wrong parameters count FirstExpert.mq5 1400 14
'OrderMagicNumber' - function not defined FirstExpert.mq5 1401 14
'OrderSymbol' - function not defined FirstExpert.mq5 1402 14
implicit conversion from 'number' to 'string' FirstExpert.mq5 1402 14
'OrderType' - function not defined FirstExpert.mq5 1403 8
'OP_SELL' - undeclared identifier FirstExpert.mq5 1403 22
'OrderLots' - function not defined FirstExpert.mq5 1406 18
'OrderClosePrice' - function not defined FirstExpert.mq5 1409 19
'OrderOpenPrice' - function not defined FirstExpert.mq5 1409 37
implicit conversion from 'number' to 'string' FirstExpert.mq5 1410 56
100 error(s), 4 warning(s) 100 5