- How to make an EA not lose data after MT4 shut down?
- Need an advice !!!!!
- About trailing stop
You have already provided the codes within the first link I looked at. If you're really a programmer than that should have already worked for you with very little modifications. Here's how I would do it.
- I would create a Extern Variable for the #-of-last-trades-to-look-at.
- I would create a function which returns the #-of-losing-trades among those.
- I would sort the history pool by OrderOpenTime || OrderCloseTime to ensure I'm looking at recent trades.
- Within the start(), I would ask if( #-of-losing-trades() >= #-of-last-trades-to-look-at){ return; }
Now if I could write the code snippet faster than the above I would have provided that instead. But really, this is not the forum for copy-paste codes, we help people code for themselves.
If you want to create something using Molanis why aren't you asking in the Molanis forum ? if you want to code then learn to code.
10 print "Raptor, here's a pointed answer for you: I have asked in the Molanis forum. And I instantly received a polite, constructive reply."
20 goto 10
Ubzen: thank you for your wise, helpful words. I will use your framework in my logic.
Chika : )
10 print "Raptor, here's a pointed answer for you: I have asked in the Molanis forum. And I instantly received a polite, constructive reply."
Constructive ?
"We do not have that available but you may want to look at the martingale code that says if the last position is a win/lose. Maybe use it as a base to get what you want.
Look in the code for //Martingale lot calculation."
I think . . . " if you want to code then learn to code. " is way more constructive.
Constructive ?
"We do not have that available but you may want to look at the martingale code that says if the last position is a win/lose. Maybe use it as a base to get what you want.
Look in the code for //Martingale lot calculation."
I think . . . " if you want to code then learn to code. " is way more constructive.
Actually, it gave me the clue to create the code. Now, I can charge you for it. Goto 10. END
Actually, it gave me the clue to create the code. Now, I can charge you for it. Goto 10. END
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use