Need Help with Signal

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

Jul 18 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 Jul 18 2018, edited 2 times in total.

User avatar
TJ
Posts: 7774
Joined: Aug 29 2006
Location: Global Citizen
Has thanked: 1036 times
Been thanked: 2233 times

Jul 18 2018

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

User avatar
TJ
Posts: 7774
Joined: Aug 29 2006
Location: Global Citizen
Has thanked: 1036 times
Been thanked: 2233 times

Jul 18 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: 7774
Joined: Aug 29 2006
Location: Global Citizen
Has thanked: 1036 times
Been thanked: 2233 times

Jul 18 2018


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

Go to the Wiki and look up the keyword:

SellShort