binary-ex-machina / binary.com-bot

Scripts for using on Binary.com Bots.
76 stars 187 forks source link

About EMA Stratery #60

Closed navneetsinh closed 5 years ago

navneetsinh commented 5 years ago

Ema 14 cross down Ema 21 Trade with Fall Ema 14 cross Up Ema 21 Trade with Rise

I tried with making this strategy by my bot but it's also trades on EMA14 > EMA21 OR EMA14 < EMA21. I want only trade on cross up/cross down. I don't want to trade on EMA14 > EMA21 OR EMA14 < EMA21.

If possible please help me. Thanks,

binary-ex-machina commented 5 years ago

You can get the cross comparing the 2nd element of the two arrays you want to compare, then compare the 1st element (actual value) to see if it was cross over or cross under

image

navneetsinh commented 5 years ago

You can get the cross comparing the 2nd element of the two arrays you want to compare, then compare the 1st element (actual value) to see if it was cross over or cross under

image

here is both purchase condition with rise ?????

binary-ex-machina commented 5 years ago

@navneetsinh my mistake, the second is fall.

navneetsinh commented 5 years ago

@binary-ex-machina ok, done, thank you