Try to do a De Marker indicator in EFS.
The agorithem is
1) If currenty bar price high is higher than the previous one, assign it the difference, otherwise 0
if high()>high(-1) {
DeMax=high()-high(-1);
}
else {
DeMax=0;
}
2) Same for current bar price low
if low()<low(-1) {
DeMin=low(-1)-low();
}
else {
DeMin=0;
}
3) Need to make them a SMA 14, here I don't know how to code:
DeMark=SMA(DeMax, 14)/(SMA(DeMax,14)+SMA(DeMin,14));
Need help, thanks.
The agorithem is
1) If currenty bar price high is higher than the previous one, assign it the difference, otherwise 0
if high()>high(-1) {
DeMax=high()-high(-1);
}
else {
DeMax=0;
}
2) Same for current bar price low
if low()<low(-1) {
DeMin=low(-1)-low();
}
else {
DeMin=0;
}
3) Need to make them a SMA 14, here I don't know how to code:
DeMark=SMA(DeMax, 14)/(SMA(DeMax,14)+SMA(DeMin,14));
Need help, thanks.
Comment