Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 20:20:05 +0000



Post From: having a problem with abs and plotting

[2015-10-07 22:35:26]
KhaosTrader - Posts: 128
Hi,

Having a problem getting this code to draw a line...


sc.ExponentialMovAvg(sc.Close, EMA_Medium, 50);
sc.ExponentialMovAvg(sc.Close, EMA_Long, 200);

float EMAMedium = EMA_Medium[sc.Index];
float EMALong = EMA_Long[sc.Index];
AvgDiff_100percent_Upper[sc.Index]= abs(EMAMedium - EMALong) ;

What am i doing wrong here? please...