Page 1 of 1

Need Help with Signal

Posted: Jul 18 2018
by RexCarro
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 ;

Re: Need Help with Signal

Posted: Jul 18 2018
by TJ
See posts #1 & #2
viewtopic.php?t=11713

Re: Need Help with Signal

Posted: Jul 18 2018
by TJ

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

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

Re: Need Help with Signal

Posted: Jul 18 2018
by TJ

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

Go to the Wiki and look up the keyword:

SellShort