Indicator Divergence

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: Indicator Divergence

Postby 7510109079 » Tue Nov 29, 2016 3:01 pm

the alert fires 2 candles after the arrow. Can it be done so it fires one candle after. Maybe give the user the choice of 1st or second fractal alert?
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: Indicator Divergence

Postby Apprentice » Thu Dec 01, 2016 4:24 am

Simple Fractal option added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Indicator Divergence

Postby 7510109079 » Thu Dec 01, 2016 6:11 am

cool thx.

btw following code lines 269+270 still require swapping:

pperiod1 = source:serial(period)
period = period - 1;
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: Indicator Divergence

Postby 7510109079 » Mon Dec 05, 2016 7:46 am

code lines reversed to prevent line lag
Attachments
Indicator_Divergence.lua
(8.39 KiB) Downloaded 674 times
Indicator_Divergence with Alert.lua
(18.9 KiB) Downloaded 666 times
Indicator_Divergence with Alert (fractal).lua
(19.38 KiB) Downloaded 751 times
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: Indicator Divergence

Postby doanthedung » Tue Dec 06, 2016 9:00 am

Great indicator!
Can you create Strategy with MA filter?

Thanks!
doanthedung
 
Posts: 23
Joined: Tue Jul 21, 2015 12:17 am


Re: Indicator Divergence

Postby 7510109079 » Fri Jun 23, 2017 4:30 am

Can a small correction be made to the "Indicator_Divergence with Alert" lua 3 posts above:
download/file.php?id=17153 please

If DRAWINGMODE parameter is set to Open or Close, the oscillator line moves accordingly BUT the div lines and arrows stay fixed.

Can this be corrected so that the lines & arrows connect exactly to the oscillator line

many thx in advance
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: Indicator Divergence

Postby 7510109079 » Thu Jun 29, 2017 12:15 pm

bump for the above request
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Previous

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 70 guests