How to turn off pending order using constant input?
-
Hello,
I'm working on my EA which is using instant entry and pending orders.
In some situation, I don't want to use the pending orders.How can I add an option to turn off and turn on pending orders block.
I want to add a constant input true-false option for this purpose.
This is my project link https://fxdreema.com/shared/Wnm2pcU4dHope someone can show me how to do it.
Thank you. -
-
@tipsywisdom I had try that earlier.. yes, it's working..but my problem is how to control it via constant input..I wanna put an option in constant input to turn it on or off by boolean true-false.
Example in constant input I wanna input like this :
bool =>Turn On Pending Orders=>true/false -

-
to learn more, swipe up now.
-
Below is my easiest way:

100% work -
@loka-heng You forgot to add the Constant on the left operand, but this is the way to do it.

-
@l-andorrà Thanks for your advice

-
why wouldnt you use just the single block that I showed? its already a boolean block itself. orange is true, yellow is false. No need to set operands or comparative conditions.
-
@dscalperz Tipsy is correct his way is the easiest because it only uses one word in one block, principally it is the same as Loka Heng's way, they both use the if turn_on_and_off bool is true do this, just uses one constant instead of comparing the left and right operand.
