Hello,
Can somebody help me to write a code so that stop loss is determined by "previous candle's top with x amount of pips added to it" for this ea? Currently sl is general pips.?
How can i change current rules (below)for entering to a
if (High[0]>High[1]&&High[1]>High[2]&&High[2]>High[3]&&Open[0]>Open[1]&&Open[1]>Open[2]&&Open[2]>Open[3]) BuyOp=true;
if (High[0]<High[1]&&High[1]<High[2]&&High[2]<High[3]&&Open[0]<Open[1]&&Open[1]<Open[2]&&Open[2]<Open[3]) SellOp=true;
rules according to this screen? I have tried this this one
if (Low[0]<Low[1]&&Low[1]<Low[2]&&Low[2]<Low[3]&&Close[0]>Close[1]&&Open[1]>Open[2]&&Open[2]>Open[3]) BuyOp=true;
if (High[0]>High[1]&&High[1]>High[2]&&High[2]>High[3]&&Close[0]<Close[1]&&Open[1]>Open[2]&&Open[2]>Open[3]) SellOp=true;
But its not working. The idea is to have 4 consecutive higher highs but the forth one has to have close lower then previous close. Just like on the chart
Thanks
Last edited by tkaboris; 10-24-2009 at 17:08.
I think Martingale could work here. SL = 100.
![]()
This EA doesn't work.
There must be some bugg in it.
I made 2 tests... one between 2007-01-01 to 2009-11-27 (first picture). Second test: 2007-01-01 to 2008-11-27.
As you can see on the first picture there occurs no drawdown what so ever around 2008-11-27. But when testing the EA so that the end of test period is 2008-11-27 we have that drawdown again.
Same setting was used in both tests. no different at all. Used 50 as trailing stopp.
Sorry to say... but it doesn't work.
Regards / joLi
Second picture:
Hmm a promising one...![]()
mm very best
i want to use 100$ , i can set ? plzzz i set 0.01 is unusable
test 1000 very best ^^