.Originally Posted by ;
I shall do some testing at the week and allow you to know what we have. And thanks mate.
Man you did the job. I can not express how thankful I am.
I have one question where should I enter indiors and conditions for the very first order entry and the second's order the reverse because I want to check if the adjusted SL is better than if only opposite signal is triggered.
Because maunually it is fairly difficultto do so much testing.
Example. buy at 1.3000. Tp 30
conditions for market = accurate
open market order with current price TP 30.
Along with the ping pong remains as it had been.
You want to have, if I know well?
I will do that but keep in mind: This will be the last thing that I shall help you with, in this issue.
It's virtually correct look I want the side by where it begins and also conditions to be met for the first opposite order.Originally Posted by ;
Example: Let say I put state that if price is over Moving average buy else if price is below Sell.
Price is over MA buy order is open. Now I wish to open opposite order when price drops below that MA. And after that to continue ping pong.
Thanks in advance mate.
You need to be quite exact about each and every parameter (or step) the EA must consider (because I do not want to get it done over and over again, or ask and ask for clarifiion). Not just a shallow case.
So, now it seems the measures are as follows? :
1. If condition #1 is fulfilled: start commerce.
2. If condition #2 is fulfilled: do the reverse of the last trade.
3. If condition #1 is fulfilled: do the reverse of the last trade.
4. Start over from step two.
Ok mate I get you.Originally Posted by ;
Detailed example as you can.
1. No transactions at all waiting for sign
1. Price is above 10 MA signal Buy with adjusted TP 30pips.
2. Following while price drops under 10 MA (sell sign ) open sell order with TP 30 pips.
3. Ping pong between this buy and sell price until TP is hit from any side.
Thanks.Originally Posted by ;
I shall test it in the evening because today I am at yesterday and job did not managed to do it. When I test it will come back to you with the outcomes.
It does exactly what I want. The only issue is that after TP is hit. Lot multiplier continues to multiply lot in the previous order instead of starting over again by starting lot.Originally Posted by ;
Last caution if I will want to add another indior I will need to include in this code right.
Int cond_start()
if(Bid gt; iMA(NULL, 0, 100, 0, MODE_SMA, PRICE_CLOSE, 0)) return OP_BUY;
If Istoc( bla bla) return OP_BUY;
return -1;
The return OP_BUY needs to be added after each condition or only in the last state before return -1