Programming an EA with Stochastic and 2 Moving Averages

preview_player
Показать описание
Answering a subscriber question on how to trigger trades in an EA based on Stochastic and 2 moving averages of the stochastic.

You can download Metatrader 4 and 5 free demo after registration from

Chapters
0:00 Introduction
0:34 The combined indicator
1:01 Coding the EA
1:11 Inputs
1:44 Global variables
2:05 Initialise the stochastic buffer
3:06 Trading loop
4:15 Stochastic and MA Calculations
6:53 Summary
Рекомендации по теме
Комментарии
Автор

So far this can be done with an indicator with a single buffer on MQL5, it would be interesting to see how it can be done with an indicator with more than one buffer.

vincentsekoboane
Автор

Rider Trader Developer. The Lifestyle on the clouds. Subbed

surething
Автор

Nice and concise, I use something similar as a screener with alerts, but it's nice to see someone else's approach.

jesseliverless
Автор

Please share a sample template Stochastic with MA, , thanks

Jeep
Автор

Please, Can you write a EA or Indicator with BBands default settings (20 Periods) to Buy or give signals when it crosses below RSI (14 Period) Level 20 and Sell signals when it crosses RSI Level 80?

sabartmedia
Автор

This is not for this ea. But a general question on how to put in a push notification for a zigzag when a new value is formed. On mql5

stefanbarendse
Автор

Can you add this in the stochastic window
21 simple MA with 10shift
Apply : close/close previous indicator's data
Make the line blue with option to change .

Add a divergences feature where in stochastic window trendline form to identify the divergence. With trendline on chart also.

Stochastic settings 50:7:5 with levels 90, 80, 50, 20, 10 .

jafxtradinginstitute
Автор

While compiling, it says NewBar function is not defined

Dhruvmehta
Автор

Hi! Could I ask you a question... Which books do you suggest to implement my program knowledge? Thanks

dadanielaradice
Автор

This is a good Video.

But I have a problem, when try your code, because when We zoom in and zoom out the MA and stochastic graphic is become different with the stochastic position on chart. So I 'm confused because result value from your code different value with the graphic shown on stochastic. when the stochastic 5, 3, 3 line signal value shows still in the middle area (below 80% and above 20%), but the printing result is "Trade Below Lower" or "Trade Above Upper". Why it different how to check. How to Show the "BufferStochastic" , "FastMA", "SlowMA", value as an Indicator.... (since the FastMA is not an array) in order to get the visual drawing line.

(or is there a better way to solve the problem occur because of different position from graphic line from Sto and value from your code.

Thank You in Advance

budiajadong
Автор

Please I need you to code an EA with my trading strategy. What will it cost

forexskills
Автор

Please I really need this of video on OBV AND MOVING AVERAGE, in OBV chart value together, please help me

EverestDsylva
Автор

Thank you very much. I want to kñow how can create and make Trend line for support & Resistance and use it for Trading EA. Thanks

shahinsinv
Автор

Thanks for the video. I've been looking for something like this for a long time, because I have a similar strategy built around the Williams' Percent Range and a Moving Average of the WPR. One question though: If I want to create entry and exit signals based on the crossover of the two, do I need a buffer for the MA as well?

elishazimori
Автор

Please can you help me with vix75 indicator

kadikutoyosi
Автор

sorry, could you please explain the usage of fast and slow on imaOnArray?

fadelfarinsqi
Автор

What if you need to program to sell only when there is a crossing between 2 exponential moving averages at the overbought level(stochastic oscillator) and oversold level(stochastic oscillator) ? How can it be done?

santusbencollins
Автор

Thanks for the video. Can you please replicate the same idea in MQL5.

bonginkosibenedict
Автор

Why is your Stochastic is different from me, only 2 lines yours are 3

newtrend
Автор

As usual, I always find your videos informative and always leave you a question. I want to code this in MQL5. The issue as you know has always been the non-straightforward method of calculating indicator values in mql5.
I know I will have to create a Buffer, A handle and then finally calculate the indicator values. I want to ask, if I want to replicate this idea with mql5, do I need to create 2 more Buffers and Handles for the Fast and Slow Moving Averages or can I just use the same Buffer for the stochastic but 2 Handles for the Fast and Slow moving Averages, then calculate the moving Averages on Array with the two handles gotten from the moving Average array data?
I hope my question isn't too complicated, the simple form of the question is how can I replicate this in MQL5? .
Thank you

hamzavictor