# strategy to indicator conversion

Questions about MultiCharts and user contributed studies.
aczk
Posts: 67
Joined: 08 Feb 2012
Has thanked: 8 times
Been thanked: 1 time

### strategy to indicator conversion

Hi

Does anyone now how to create a simple indicator out of the below strategy. I have been experimenting with paintbars etc. to no avail. It runs on 20 min bars.

inputs: q(1.5),n(25);

if c > Average(c,n) then buy next bar at o of tomorrow+(q*range) stop;
sell next bar at o of tomorrow-(q*range) stop;

if c < Average(c,n) then sell short next bar at o of tomorrow-(q*range) stop;
buy to cover next bar at o of tomorrow+(q*range) stop;

Any help very appreciated!

TJ
Posts: 6572
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 968 times
Been thanked: 1902 times

### Re: strategy to indicator conversion

aczk wrote:Hi

Does anyone now how to create a simple indicator out of the below strategy. I have been experimenting with paintbars etc. to no avail. It runs on 20 min bars.

inputs: q(1.5),n(25);

if c > Average(c,n) then buy next bar at o of tomorrow+(q*range) stop;
sell next bar at o of tomorrow-(q*range) stop;

if c < Average(c,n) then sell short next bar at o of tomorrow-(q*range) stop;
buy to cover next bar at o of tomorrow+(q*range) stop;

Any help very appreciated!

You have to be more specific... what do you mean by "to no avail"?

What do you want to see on the chart?
What have you tried?

aczk
Posts: 67
Joined: 08 Feb 2012
Has thanked: 8 times
Been thanked: 1 time

### Re: strategy to indicator conversion

Actually I wonder is there an easier way to acieve my goal:
I want to show several different strategies realtime entries & exits for one symbol. So far I just have six small chart windows of that symbol, each running a different strategy.

Is there an easier way to do this, like showing each strats status on my main chart?

Coding indicators of the strats was one idea?

Thx

TJ
Posts: 6572
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 968 times
Been thanked: 1902 times

### Re: strategy to indicator conversion

aczk wrote:Hi thx for the reply.

Actually I wonder is there an easier way to acieve my goal:
I want to show several different strategies realtime entries & exits for one symbol. So far I just have six small chart windows of that symbol, each running a different strategy.

Is there an easier way to do this, like showing each strats status on my main chart?

Coding indicators of the strats was one idea?

Thx

I do not exactly understand what you mean.