Block "No Trade is Running" seems not to work correctly.
-
Hello fxDreema. In my project, this block is not working. I want only the first order is open to buy, if it is already open, do not open any more buy order. Vice versa to Sell.
My project: http://fxdreema.com/shared/bf8YKyzZc
-
I have some Heiken Ashi custom indicators... I don't know from where... but none is named as the one that you use in this project, so I let's say I can't backtest it

But it seems to work for me with this simple project: http://fxdreema.com/shared/lFcCo7KGd - I have 1 buy and 1 sell at a time with this.
-
Ok So my logic is correct. But this and the code? Please find attached the indicator.
......
Heiken Ashi Real.mq4 -
This is what I have on backtest: http://prntscr.com/2i5t92 Where is the problem with it?
-
I believe you can understand if download my project and test on your platform. Had forgotten to tell you the message of the expert.
message:
2014.01.10 12:11:26 TCF Swing Trader HA Real v2.7 EURUSD.e,M1: Error: Invalid SL requested (1.36824 for open price 1.36821)
2014.01.10 12:11:25 TCF Swing Trader HA Real v2.7 EURUSD.e,M1: Error: Invalid SL requested (1.36831 for open price 1.36821)
2014.01.10 12:11:25 TCF Swing Trader HA Real v2.7 EURUSD.e,M1: Operation details: Speed 797 ms
2014.01.10 12:11:25 TCF Swing Trader HA Real v2.7 EURUSD.e,M1: modify #62518643 buy 0.01 EURUSD.e at 1.36821 sl: 1.36821 tp: 0.00000 ok -
Yes, I downloaded your project and indicator and tested it on my platform, the result is in the posted screenshot above. I don't have any errors.
I backtested it on M1 as well and I have 0 error messages. BE and TS blocks are working well. I can suggest to check your input parameters if there is something wrong there. I used default values that comes with the project and with them it's fine. -
The error appears when I run this in the demo account, not tested in backtest, because for me it did not work on backtest. Please check demo account.
-
This error "Error: Invalid SL requested" appears when the requested SL level is above Ask for buys or below Bid for sells. What stops do you use, short stops? Because on the EA you posted above they are like 15 and 30 pips and in this case Ask will be far away from the potential SL.
-
__This error "Error: Invalid SL requested" appears when the requested SL level is above Ask for buys or below Bid for sells. What stops do you use, short stops? Because on the EA you posted above they are like 15 and 30 pips and in this case Ask will be far away from the potential SL.[/quote:12qgpw76]
I put 10, 15, 50 pips, he was giving me this message. SL 0 pips also causes him to change the SL to the entry price. -
Hello fxDreema. Okay? I'm still awaiting the issue.
You can put 0 in SL and make the SL does not work? Because if I need to, just paste above 1 for example, but if I do not need, and put 0 disables the SL. Is it possible? Because when i put the SL 0, it appears that error message. Once I switch to 10 pips, or 30 pips, for example, continues giving mesangem error "Error: Invalid SL requested" and closing the order with SL in the opening price.
-
But I don't want to guess what input can I put. I don't know your inputs, I am using those settings from the project, and if you use different... then what do I do? Inspecting something that it's not to be inspected.
Give me something that is easy, fast and straight. Something that will give that error almost immediately. Without conditions and input parameters that can be different for you and me. The only block that can modify SL is obviously the trailing stop block. So what I need is probably 3 blocks -> No trade, Buy now and Trailing stop. -
Ok fxDreema. A simple project: http://fxdreema.com/shared/iFoEVqIec
The problem may be in the BE, TS or SL.
-
Now instead Constants, Input checkboxes are used. No difference at that point

I think this is better: http://fxdreema.com/shared/zrV0t7UBd
The only points where SL can be modified are BE and TS. If you got "Error: Invalid SL requested" again, put it here. I have made a little update where it will print Ask/Bid price instead open price.