Need Help with Signal

Questions about MultiCharts and user contributed studies.
RexCarro
Posts: 1
Joined: 18 Jul 2018

Need Help with Signal

Postby RexCarro » 18 Jul 2018

Trying to make simple long PPO signal into a shot signal. I have no experience with programming. Hoping to get help. Thank you.

Code: Select all

// v1
inputs:
Price(Close),
ShortLen(9),
LongLen(45);

variables:
PPO(0),
Trigger(0);

PPO = (XAverage( Price, ShortLen ) - XAverage( Price, LongLen ))/XAverage( Price, ShortLen )*100;

Trigger = XAverage((XAverage( Price, ShortLen ) - XAverage( Price, LongLen ))/XAverage( Price, ShortLen )*100, 9);

if Trigger crosses under PPO then
Buy ( "Buy" ) next bar at market ;

if Trigger crosses over PPO then
Sell ( "Sell" ) next bar at market ;
Last edited by RexCarro on 18 Jul 2018, edited 2 times in total.

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

Re: Need Help with Signal

Postby TJ » 18 Jul 2018

See posts #1 & #2
viewtopic.php?t=11713

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

Re: Need Help with Signal

Postby TJ » 18 Jul 2018


. . . I have no experience with programming. Hoping to get help. Thank you.

This is a good place to start.
viewtopic.php?t=6929

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

Re: Need Help with Signal

Postby TJ » 18 Jul 2018


Trying to make simple long PPO signal into a shot signal . . .

Go to the Wiki and look up the keyword:

SellShort


Return to “MultiCharts”