MQL4 Analogue to EntCondS = FastD(NS1)

 
I am a beginner programmer and I am confused

How do I convert this FastD(NS1) <= SlowD(NS2) to MQL4?

{ Entry and exit conditions }
EntCondL = true;
EntCondS = FastD(NS1) <= SlowD(NS2);
EndofSess = false;
If DataCompression >= 1 and DataCompression <= 4 then
EndofSess = time = SessionEndTime(0, 1);


 

What is FastD(NS1) and SlowD(NS2) ? why do you expect anyone here to know ?

Ah . . . Google helped me . . http://help.tradestation.com/08_08/elword/function/fastd_function_.htm maybe https://docs.mql4.com/indicators/iStochastic

 
easylanguage that is
very spooky and weird language i tell u :)
anyidea how to get SlowD from iStochastic?


/*
{ Strategy inputs }
Inputs: NS1 (21),
NS2 (34),
NBarEnL1 (18),
NATRL (74),
EntFrL (7.3871),
MMStopSz (100.00),
TargFrL (12.8180),
NATRS (68),
EntFrS (0.9058),
NBarExS (14);
*/
EasyLanguage Reserved Words & Functions

EasyLanguage Reserved Words & Functions

FastD (Function)


Disclaimer


The FastD series function returns the Fast D value for the Stochastic oscillator.


Syntax

FastD(StochLength)


Returns (Double)

A numeric value containing FastD for the current bar.


Parameters

Name


Type


Description


StochLength


Numeric


Sets the number of bars to consider.


Remarks

Please refer to the discussion under the Stochastic function.


Example

Assigns to Value1 the Stochastic FastD over 14 bars.


Value1 = FastD(14);


Reference

Takano, Mike. Stochastic Oscillator, Technical Analysis of Stocks and Commodities. April 1991.


Stein, John. The Traders’ Guide to Technical Indicators, Futures Magazine. August 1990.
 
Sorry, Technical Indicators are not my thing . . . there are plenty of people here that know about Stochastics though, just be a little patient. :-)
Reason: