Reply

HOW TO BUILD E.A WITH CANDLE/BAR

5 replies

msophe

Subscriber, bbp_participant, community, 124 replies.

Visit profile

7 years ago #116382

HI

 

I want to build E.A with candle pattern or Bar but I don’t know how to start, and my condition is like this ;

 

Long Entry if :-

If previous Bar is Ask then open Long order position

 

Long Exit if :-

Close position if current Bar closed is Ask

 

Short Entry if :-

If previous Bar is Bid then open Short order position

 

Short Exit if :-

Close position if current Bar closed is Bid

 

I try to build E.A and I need some help to finish this project.

 

find my attachment here

 

 

Thanks for your time

 

 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #141732

If previous Bar is Ask then open Long order position

 

 

Just to be sure does this mean if the market Ask = Close[1] as shown in you project then open long?

0

msophe

Subscriber, bbp_participant, community, 124 replies.

Visit profile

7 years ago #141752

HI

 

can you attached , because i try to open in mt4 and it open  vise versa, i thinks there mistake, help me to correct

 

Thanks

0

msophe

Subscriber, bbp_participant, community, 124 replies.

Visit profile

7 years ago #141778

HI

 

When I have attach E.A with above condition it did not open any order can you check and help me to solve that issue

 

I have attach my screenshot to find more.

 

Thanks for your time.

 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #141840

Hello,

 

in the first condition you have set “Bid > Ask”. This will never happen since Bid price is always < then Ask price. Try to fix this it should help. Also Close[1] = Ask needs using "every tick" backtest precision in MetaTrader to work correctly. You can also do "Ask cross above Close[1]" or similar condition to make it work

 

I have modified your project since it had some errors with conditions and magic numbers

0

msophe

Subscriber, bbp_participant, community, 124 replies.

Visit profile

7 years ago #141863

HELLO

 

Thanks so much, now it work as i want.

0

Viewing 5 replies - 1 through 5 (of 5 total)