Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 17:14:30 +0000



Post From: How to compare EMA to price?

[2014-05-21 19:38:46]
User12676 - Posts: 70
I have done

sc.ExponentialMovAvg(sc.BaseDataIn[SC_LAST], sc.Subgraph[0], 20);
float ExponentialMovAvg = sc.Subgraph[0][sc.Index];

if (price < ExponentialMovAvg) { do something } <--- but this doesnt work

How do you compare price to an ema properly?