I need some help. I want to setup a If then type of situation.
I'm trying to setup a situation where I get a signal from a indicator to buy or sell then I want another set of conditions met before a trade is open regardless of how many candles it takes to happen. I know how to write a if situation but not a if then, if that's possible. Any help would be appreciated or if you can direct me to a link where I can read up in this.
Use a global/static boolean flag.
When the conditions are met, set the bool to true.
Check for the 2nd set of conditions only when that bool is true.
Remember to re-set the bool to false when you want to start over.
//--- The else part refers to the second if operator:
//--- The else part refers to the first if operator:
//--- Nested operators