strategy to indicator conversion

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

strategy to indicator conversion

Postby aczk » 02 Feb 2013

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!

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: strategy to indicator conversion

Postby TJ » 02 Feb 2013

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 is your intention?
What do you want to see on the chart?
What have you tried?
Please post your efforts, we can start from there.

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

Re: strategy to indicator conversion

Postby aczk » 03 Feb 2013

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

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: strategy to indicator conversion

Postby TJ » 03 Feb 2013

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.

You can start with post #2
Autotrade / Backtest / Optimization FAQ


Return to “MultiCharts”