Pivot Point Supertrend - MQL4 Code

Pivot Point Supertrend - MQL4 Code

Orchard Forex

2 года назад

8,737 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Orchard Forex
Orchard Forex - 05.06.2022 09:48

I found a problem with the MT4 version that appears sometimes if I change symbol on a chart that has the indicator already loaded and results in some resistance or support lines disappearing up or down at the ends. To fix make 2 adjustments.

In OnInit add the following lines after the SetIndexBuffer statements:
SetIndexEmptyValue( 0, EMPTY_VALUE );
SetIndexEmptyValue( 1, EMPTY_VALUE );

and in OnTick add the following 2 lines just before the line "if ( BufferSupport[i + 1] != EMPTY_VALUE ) {"
BufferResistance[i] = EMPTY_VALUE;
BufferSupport[i] = EMPTY_VALUE;

Ответить
Bhogendranath Nath
Bhogendranath Nath - 23.08.2023 07:43

thank you. kindly share code for this

Ответить
Vinicio Coelho
Vinicio Coelho - 30.07.2023 16:45

Super mega excellent🎉🎉🎉🎉🎉🎉

Ответить
James Answers Everything
James Answers Everything - 23.04.2023 04:52

Mine does not draw support or resistance lines. not sure what I missed. 0 errors found in compile and it does draw the mid. Thanks

Ответить
Dennis Bielefeld
Dennis Bielefeld - 10.06.2022 21:22

Hi, this is exactly what I was looking for. Do you happen to have the Supertrend Indicator on Tradingview's list? That would be great if you could replicate it too.
Great job keep it up.

Ответить
Jim Harkins
Jim Harkins - 07.06.2022 16:30

I'm a new subscriber, and new to MQL4, long time software developer though. I'm trying to follow your code testing values along the way. Line 99 sets ppLast to 32bit int max (2147483647.0). All of the buffers seem to have this same behaviour. Is there something I'm missing or is this normal? Thanks!

Ответить
J Glazebrook
J Glazebrook - 03.06.2022 15:00

Thank you very much!!! Appreciate your video!!! I liked it so much, that I tried to use your MTF video, without much success. Thank you again!!!

Ответить
mixAI
mixAI - 28.05.2022 15:20

is it mt4 version?

Ответить
Aleksey Firsin
Aleksey Firsin - 27.05.2022 17:38

Thanks a lot :)) I was looking a good supertrend ind for a long time. The version that I found and used before was a bit heavy for testing in expert and now I coded it myself with your help :) many thanks for that. But one issue appeard there are some places were lines were drawn with anomalies. I can't attach the picture to show the problem. Can I contact with you somehow to show the problem?

Ответить
Diya Patel
Diya Patel - 27.05.2022 01:01

Thanks 🙏🙏🙏🙏🙏

Ответить
Mr.LuckyTrader007 Dg
Mr.LuckyTrader007 Dg - 26.05.2022 14:17

Thanks again for free education!
God bless you! 😊

Ответить
JA'FX TRADING INSTITUTE
JA'FX TRADING INSTITUTE - 25.05.2022 23:57

Need a Supply and Demand zones indicator. That is stable

Ответить
Oswald, H.J.
Oswald, H.J. - 25.05.2022 19:39

indicaotor_type4-6 give false inputs in color tab.

Ответить
JA'FX TRADING INSTITUTE
JA'FX TRADING INSTITUTE - 25.05.2022 18:55

Could use JBR trend indicator or QQE indicator as filter also.
To spot trend reversals and Divergence

Ответить
Arvind Shah
Arvind Shah - 25.05.2022 17:48

Many thanks for Supertrend indicator. Looking ahead , use this indicator by Expert. Once again Thanks a lot.

Ответить
Don Bangert
Don Bangert - 25.05.2022 16:21

Glad to see you created a stable Supertrend indicator. The one I found online seemed to repaint occasionally.

Ответить
My My
My My - 25.05.2022 11:46

at last! Many thanks for explanation of OnCalculate function

Ответить
Two Blue Ticks, 🦉 Win
Two Blue Ticks, 🦉 Win - 25.05.2022 10:07

I wonder can this method make money?

Ответить
Max Kelter
Max Kelter - 25.05.2022 10:03

Seems like the strategy can be very good when you design your own indicator. Liked it on Trading View - so nice to have it for Mt4 platform. Tnx.

Ответить
trustfultrading
trustfultrading - 25.05.2022 09:54

Cool video, im looking forward for the strategy. Maybe i will add this indicator to my EA. What I noticed is that when you use functions like "iATR" in your indicator, the final indicator value is usually delayed by one tick because the ATR has not yet been calculated for the current tick. This is not such a big problem if you have an EA that uses every tick, but if you only trade with opening prices of a new candle, then you should adjust your code accordingly to solve the problem. (Mql5)

Ответить
King Albertois
King Albertois - 25.05.2022 09:46

🙏🙏🙏thank u sir is there a video for super trend EA coding lesson on any video if not please I'm requesting one please 🙏 n thank you

Ответить