- Search Energy EXCH
- 10 Results
- Abo-Amal replied Sep 17, 2023
For testing purposes only We can use the below lines to calculate Lot size based on given risk. These lines work only with pairs that has dollar as second pair, and the price has 5 decimals. If we want a code that works for all pairs, we have to: - ...
- Abo-Amal replied Sep 17, 2023
tried it, still the same I don't believe this is the problem, Nb & Ns are counting correctly I think the problem is in the code in the below image, since H1 and L1 values are updated with each candle close, the code checks only after "L1 and H1" ...
- Abo-Amal replied Sep 17, 2023
Adding move to b.e function when price reach 50% of target it should be c image alled within OnTimer or OnTick void MoveToBE() { for(int b=OrdersTotal()-1; b>=0; b--) { if(OrderSelect(b,SELECT_BY_POS,MODE_TRADES)) { ...
- Abo-Amal replied Sep 17, 2023
I know why this is happening, but I don't know how to fix it image
- Abo-Amal replied Sep 17, 2023
The code opened only buys, didn't open sell trades. the error was in the last image you've attached. it should be if(L1x<L2x && L2x<L3x) instead of if(H1x>H2x && H2x>H3x) After fixing it the code opened both trades. But the N counter is not working ...
- Abo-Amal replied Sep 16, 2023
The second one is better, but i believe you’ll have to wait for 6 candles to close
- Abo-Amal replied Sep 15, 2023
for the conditions in the quote When the trade is open, the expert should stop looking for entries in the same direction, until the trade is closed on tp or sl. (DONE) When the trade is open, the expert can keep looking for trades in the opposite ...
- Abo-Amal replied Sep 15, 2023
Now lets try adding a condition to the code for the next “N” candles on HTF, check at LTF for the entry the idea is better described in the below image image actually i have no idea how to do this except for simple "For Loop" so i'll be waiting to ...
- Abo-Amal replied Sep 15, 2023
When i compile the above code i get these errors image so i changed the brackets order and it compiled without errors image But, the code is not opening any trades. when used in MT4 tester, i'm trying to figure out why.
- Abo-Amal replied Sep 14, 2023
بسم الله For the same example in your post, lets consider the following: When the trade is open, the expert should stop looking for entries in the same direction, until the trade is closed on tp or sl. When the trade is open, the expert can keep ...
- Posts by Member Search: 'Abo-Amal'