EL question

Questions about MultiCharts and user contributed studies.
Joe1001
Posts: 16
Joined: Oct 24 2012
Has thanked: 1 time
Been thanked: 1 time

Oct 24 2012

Can someone who is an EL expert explain this code to me?

vars: Pips(MinMove/PriceScale *10);
setstopcontract;

if c[0] < l[2] then
Sell Short this Bar at close;
setstoploss (Pips*20);
setprofittarget (Pips*10);

Specifically, I do not understand this part: Pips(MinMove/PriceScale *10)

why is PriceScale multiplied by 10?

Thanks

User avatar
Andrew MultiCharts
Posts: 1587
Joined: Oct 11 2011
Has thanked: 931 times
Been thanked: 559 times

Oct 25 2012

Hello Joe1001,

It seems to me that this script is for trading on FOREX. The thing is that in MC currently pip = the minimum price increment, so for instance on EUR/USD "classical" pip = X.XXXX, where is in MC by default it is X.XXXXX. Some of our FOREX trading customers want MC to display price as X.XXXXX, but the pip value to be based on X.XXXX. This script should be helpful in this case.