Help with condition.
-
Hi, i'm making an EA for M1 to catch 380 ~ pips, it's working fine, but i have one condition i want to implement but i don't know how.
The condition :
to Open Sell : 540 pips above the last bottom in 200 candles.
to Open Buy : 540 pips below the last top in 200 candles.I have nothing to share cause idk how to do it, i've tried but nothing ;/
thanks by now!
-
try this:
https://fxdreema.com/shared/EsAZGPzvcmaybe is here some automatic conversion from price fraction to pips, but for me was not working
why this, because if price is for UJ 120.0 and lowest is 119.0 (difference 100pips) it is 120-119=1.0 .. price fraction 1.0=100pips ... and in my example you give into input 1.0 (which mean 100pips)
EU exaple: price is 1.05 ... highest is 1.06 ... for difference fraction 1.06-1.05=0.01 ... fraction 0.01=100pips in EU ... so for those pairs you give into input 0.01 (for EU 540pipís is fraction 0.054, and for JPY 5.4) ... -
Miro! Thanks for your help, Unhappily i lost all my project,
I thought the software was savubg everything in history and i lost my project ;/, i'm so sad for it, i was an entire afternoon doing that, the only think was lost is the answer you gave me ;/. well, thanks anyway. i'll implement it in future codes
. stay cool. -
What do you mean you lost the project? I'm aware that sometimes all blocks become black and I still don't know why that happens, but if such thing happens, you can click on History and move 1 step up where everything should be fine. Well, if you hit "Delete", then it's a little bit harder to restore it

-
I've made a nice EA, but i tried to just optimize some things, i changed 1 or 2 blocks and when i tested was all wrong :X then i tried to go in history, but i changed to many things and it was not in history anymore. but it's ok. i'm working in something better now :D.
-
I think I set the history to contain 15 steps at most, because the database is now huge
But I changed it a little bit, so for example if you connect 2 blocks, this does not produce a new step, instead it writes on the current one. You can always use that check circle in front of each history step, which means that this step will remain in the list (similar to Photoshop). It's also a good idea to save .mq4 files from time to time, just in case 
-
yeah, i learned the hard way
but it's ok, this project is better than the other! -
I also write something initially, then when I rewrite it the result is always better
