if x < -0.015 algo

Created at 19 Apr 2018, 08:56
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
TA

tasr1r1

Joined 25.12.2012

if x < -0.015 algo
19 Apr 2018, 08:56


hi..

 

im trying to figure out the code to execute if the current value return by indicator is less than -0.015 (i.e. -0.016), then execute the command.

it work on positive number but the execution kind of giving weird result for negative value. x is declared as double

tried to google it for c# walkthrough.. but cant find any.  hope anybody in here can help

 


@tasr1r1
Replies

PanagiotisCharalampous
19 Apr 2018, 09:17

Hi tasr1r1,

Could you please share a code sample that would allow us to reproduce your issue?

Best Regards,

Panagiotis


@PanagiotisCharalampous

trade74@gmail.com
03 May 2018, 14:00

RE:

tasr1r1 said:

hi..

 

im trying to figure out the code to execute if the current value return by indicator is less than -0.015 (i.e. -0.016), then execute the command.

it work on positive number but the execution kind of giving weird result for negative value. x is declared as double

tried to google it for c# walkthrough.. but cant find any.  hope anybody in here can help

 

did you try putting in brackets  -(0.0015)

 


@trade74@gmail.com