Login Page - Create Account

Support Board


Date/Time: Thu, 23 Jan 2025 02:28:19 +0000



Post From: How to use use IF/ELSE in a code?

[2018-10-30 19:03:52]
David Clarke - Posts: 23
I’ve written this ‘crude’ (as in rough) code (for a Trading System Based on Alert Condition) to identify a pullback and it works (to a degree!) –

AND(C>ID1.SG2,C>=C[-1],C<=C[-2])

But, ideally, I just want it to trigger just once, after a Moving Average crossover.

I am lead to believe that using ‘IF/ELSE’ might enable that, but I just don't know where to start. Can you help, please?