Help needed for if conditions - page 2

 
Vladislav Boyko #:
I tried anyway. I think this code should be equivalent to your second code (unless I'm wrong again)

Thank you so much!! I really appreciate it! 

I see I guess in this way it will check for the EMA conditon first to determine buy or sell.

It is still not executing any order and I'm suspecting the Stochastic part. Maybe I should open a new post to correctly attach my codes first.

 
thVladislav Boyko #:

There is a good example in the documentation (сheck out the entire documentation page by following the link in the quote):

thanks! will check it out!
 
masterpotato #:
It is still not executing any order and I'm suspecting the Stochastic part.

I tried to write an equivalent of your code with extra square brackets to show that because your code doesn't have enough square brackets, it may not work as you intended.

masterpotato #:
Maybe I should open a new post to correctly attach my codes first

You can add a new comment to this thread. Also show how you calculate all the variables used in the conditions.

When writing a new comment, insert the code using the special button:

 
Vladislav Boyko #:

I tried to write an equivalent of your code with extra square brackets to show that because your code doesn't have enough square brackets, it may not work as you intended.

You can add a new comment to this thread. Also show how you calculate all the variables used in the conditions.

When writing a new comment, insert the code using the special button:

I've made a new post and tried to make everything more clear :)