Open Metastock, Click on Tools->Expert Advisor->New and enter whatever name you want to give.
Then Click the Highlights tab -> New -> enter Bullish as name. Under condition add:
Mov(C, 5, E ) > Mov(O, 6, E ), Select colour as Blue. Click Ok.
Then similarly add an another condition under Highlights called Bearish under it add:
Mov(O, 6, E ) > Mov(C, 5, E ), select colour as Red and click ok.
For the BUY and SELL arrows:
Add the following two conditions under Symbol.
BUY
Cross( Mov(C, 5, E ) , Mov(O, 6, E ))
Select the appropriate symbol.
SELL
Cross( Mov(O, 6, E ) , Mov(C, 5, E ))
Select the symbol.
Click ok -> ok.
TO display this expert advisor, open any chart, then right click, select Expert Advisor -> Attach. Select the Expert Advisor you had jus made then click on Ok.
Then Click the Highlights tab -> New -> enter Bullish as name. Under condition add:
Mov(C, 5, E ) > Mov(O, 6, E ), Select colour as Blue. Click Ok.
Then similarly add an another condition under Highlights called Bearish under it add:
Mov(O, 6, E ) > Mov(C, 5, E ), select colour as Red and click ok.
For the BUY and SELL arrows:
Add the following two conditions under Symbol.
BUY
Cross( Mov(C, 5, E ) , Mov(O, 6, E ))
Select the appropriate symbol.
SELL
Cross( Mov(O, 6, E ) , Mov(C, 5, E ))
Select the symbol.
Click ok -> ok.
TO display this expert advisor, open any chart, then right click, select Expert Advisor -> Attach. Select the Expert Advisor you had jus made then click on Ok.
Could you please advise how can this formula be amended to show buy signal when 5 Day SMA crosses 6 day SMA and sell when its other way around??
Awaiting reply,
Regards
Hardik