I've tested on Strategy Tester and both of trades have been opened.
But in Demo account it doesn't for "OP_BUY" : (
I've tested on Strategy Tester and both of trades have been opened.
But in Demo account it doesn't for "OP_BUY" : (
Correct, the Strategy Tester does not simulate an ECN broker.
Plenty to read here: http://crum.be/ecn
Essentially, you OrderSend with TP & SL set to 0, then OrderModify to set the SL & TP
I've tested on Strategy Tester and both of trades have been opened.
But in Demo account it doesn't for "OP_BUY" : (
Now it works... : )
The last thing:
How can get the LotSize and Symbol of the last lost manuel trade, so the EA can open the opposition trade with the right information?
I am failry new to EAs and mostly trade manually, however understand the value of automating parts of my trading strategy to make life a little less stressful. Is it possible to have a basic stop and reverse trade code when if an existing open position closes by stop-loss, a new position is immediately opened in the reverse direction, so it would open at around the same price action level.
It only activates when a stop-loss has been reached. It should also ignore any other open positions, unless those also exit via their own specific stop loss levels, in which case new stop and reverse trade(s) are created at the price action levels of those respective positions.
The newly opened position(s) should follow default parameter settings and does not need any money management, no Martingale, etc. or other features. However it must operate on any pair, indicators, timeframes and both 4 and 5 digit brokers.
I hope this makes sense? And thanks in advance!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hey,
The script is a simple EA that checks if a manuel trade (MagicalNumber == 0) closed with no profit.
Ex: When a SELL TRADE has been closed with no profit, so I would like to open straight away (market price) a OP_BUY
So I've added both way ("OP_BUYSTOP" && "OP_BUY") and only "OP_BUYSTOP seems to work but I would like to a "OP_BUY"
Please help : )