Programming Help: Average True Range

Questions about MultiCharts .NET and user contributed studies.
philippas
Posts: 11
Joined: 26 Jun 2014
Has thanked: 1 time

Programming Help: Average True Range

Postby philippas » 26 Jun 2014

Hi there,

I want to divide 2 input variables by the average_true_range x input variable 3
I'm not sure how to code this - I coded it successfully in easy language but have difficulties in C#.

Is there anyone who can help me?

I need the following inputs:

Accountsize
Comission
Multiplier

The formulae should look sth. like this: Size = (Accountsize - Commission) / (AverageTrueRange)*Multiplier);

I then want to add this study to a scanner window to get an idea of suggested position size for a particular stock that i'm trading. I want to use the formula above to normalize my positionsize w/ ATR of a stock.

Any help is appreciated!
Thanks,
Phil

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Programming Help: Average True Range

Postby Henry MultiСharts » 27 Jun 2014

Hello philippas,

Have you studied the available information about MultiCharts .NET programming?
What is the particular difficulty you have with the code?


Return to “MultiCharts .NET”