Moving Averge Crossover Alert w/Targets

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Moving Averge Crossover Alert w/Targets

Postby jrichardson83 » Fri Apr 19, 2019 12:17 am

I wanted to request a moving average signal indicator with the entry, stop, and targets algorithm used for another custom indicator, SAR Targets, which I've attached here. The rules are as follows.

BUY - Price closes above the n-period for X-Moving Average (EMA, SMA, LWMA, etc). Entry is painted at close of candle body the stop is set at the previous low. Targets are set for a custom interval (such as 1x the entry to low for first target, 1.5x for second target, etc), up to four targets.

SELL- Price closes below the n-period for X-Moving Average (50 period EMA, SMA, LWMA, etc). Entry is painted at close of candle body the stop is set at the previous high. Targets are set for a custom interval (such as 1x the entry to low for first target, 1.5x for second target, etc), up to four targets.

CANCEL - There are two conditions for a signal being cancelled, but only one of these conditions is relevant. The current signal is cancelled when the conditions for the opposite entry are met BEFORE price has hit at least target 1. For example, a buy signal is painted but 5 or 6 days later a short signal is printed. The buy signal is cancelled and the short signal is then printed. This effectively means that price will never hit a STOP, because a new entry will have nullified the previous signal.


Parameters:

Moving Average Type
Moving Average Period
Moving Average Style
Moving Average Color


Entry Line Style
Entry Line Color
Target Line Style (x4)
Target Line Color (x4)
Stop Line Style
Stop Line Color
Print Signal Arrow
Print Price Label to Left or Right of Line
Show Historical (YES/NO)

Email Alert Enable

Moving Average.JPG


SAR Price Targetsv6.lua
(37.87 KiB) Downloaded 80 times
jrichardson83
FXCodeBase: Graduate
 
Posts: 201
Joined: Thu Jan 01, 2015 1:03 pm

Re: Moving Averge Crossover Alert w/Targets

Postby jrichardson83 » Fri Apr 19, 2019 1:33 pm

One other parameter I failed to mention is the option to either SHOW or HIDE actual moving average line.
jrichardson83
FXCodeBase: Graduate
 
Posts: 201
Joined: Thu Jan 01, 2015 1:03 pm

Re: Moving Averge Crossover Alert w/Targets

Postby Apprentice » Sun Apr 21, 2019 4:08 am

Your request is added to the development list under Id Number 4608
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 22469
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia



Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 13 guests