Re: Supertrend indicators for MT4

422
you are right.
I had edited the "supertrend period" instead of the "mid price period".

it might be useful to try it with a 5 minute chart at the dax opening, when it moves more, with a 10-3 (14-3 were the default setting in my brokers platform) and 10/3.5 at the nasdaq open in the afternoon.

I hope with this doubt of mine, if nothing else, to have reduced false signals to everyone.
thank you all and especially, obviouly, Kvak.

Re: Supertrend indicators for MT4

424
For all of you SuperTrend Lovers :razz:

SuperTrend AI (Clustering)
Created Aug 14, 2023
(c) LuxAlgo

The SuperTrend AI indicator is a novel take on bridging the gap between the K-means clustering machine learning method & technical indicators. In this case, we apply K-Means clustering to the famous SuperTrend indicator.
Users can interpret the SuperTrend AI trailing stop similarly to the regular SuperTrend indicator. Using higher minimum/maximum factors will return longer-term signals.The displayed performance metrics displayed on each signal allow for a deeper interpretation of the indicator. Whereas higher values could indicate a higher potential for the market to be heading in the direction of the trend when compared to signals with lower values such as 1 or 0 potentially indicating retracements.

When observing data points within a specific space, we can sometimes observe that some are closer to each other, forming groups, or "Clusters". At first sight, identifying those clusters and finding their associated data points can seem easy but doing so mathematically can be more challenging. This is where cluster analysis comes into play, where we seek to group data points into various clusters such that data points within one cluster are closer to each other. This is a common branch of AI/machine learning.

Various methods exist to find clusters within data, with the one used in this script being K-Means Clustering, a simple iterative unsupervised clustering method that finds a user-set amount of clusters.

A naive form of the K-Means algorithm would perform the following steps in order to find K clusters:

(1) Determine the amount (K) of clusters to detect.
(2) Initiate our K centroids (cluster centers) with random values.
(3) Loop over the data points, and determine which is the closest centroid from each data point, then associate that data point with the centroid.
(4) Update centroids by taking the average of the data points associated with a specific centroid.
Repeat steps 3 to 4 until convergence, that is until the centroids no longer change.

SETTINGS
ATR Length: ATR period used for the calculation of the SuperTrends.
Factor Range: Determine the minimum and maximum factor values for the calculation of the SuperTrends.
Step: Increments of the factor range.
Performance Memory: Determine the degree to which older inputs affect the current output, with higher values returning longer-term performance measurements.
From Cluster: Determine which cluster is used to obtain the final factor.
Optimization
This group of settings affects the runtime performances of the script.

Maximum Iteration Steps: Maximum number of iterations allowed for finding centroids. Excessively low values can return a better script load time but poor clustering.
Historical Bars Calculation: Calculation window of the script (in bars).
These users thanked the author SijjiN for the post (total 8):
88FX88, Akela, pfxi, dmnik, RodrigoRT7, Forexlearner, ParallelNative, numega


Re: Supertrend indicators for MT4

430
thomdel wrote: Tue Mar 26, 2024 2:16 am @ mrtools

Respected Sir,

Reason for this post :
1) Button to indicator will help users to keep chart clean and can be used in conjuction with other indicators.
2) Most of the super trend indicators have button and this indicator is among one of the pending.
3) default params are good in this.


If Time permits & if you find useful for all then Kindly : Add Button to this indicator : !SuperTrend - cci (mtf + arrows + alerts + candles)


Thanks a Lot for all the uploads, shares, buttons.
Thanks for your generosity, support.
Thanks.
Made a new version and added an on/off button.
These users thanked the author mrtools for the post (total 8):
talaate, BeatlemaniaSA, thomdel, RodrigoRT7, Starfish, friend4you, Akela, Forexlearner


Who is online

Users browsing this forum: Antonov, Applebot [Crawler], Bing [Bot], guppiexl, Jimmy, muhammadFarooq2k20, ODJ, Proximic [Bot], Telegram [Bot], warytrader and 77 guests