Experts: The Puncher

 

The Puncher:

Trades using indicators: iStochastic (Stochastic Oscillator) and iRSI (Relative Strength Index, RSI).

Author: Vladimir Karputov

 

THX for your shared codes..

But when I tried the application on test and did not see any difference following ones

    they show same equal values for the following ones get from iStochasticGet, since they have ZERO within the paranthesis

   sig_buy  = iStochasticGet(SIGNAL_LINE,0);  
   sig_sell = iStochasticGet(SIGNAL_LINE,0);


for example if sig_buy is equal to 69 and sig_sell is equal to 69 ALSO ?!?!?!


 and same equal values for the following ones get from iRSIGet, since they have ZERO within the paranthesis
   sig_high = iRSIGet(0);
   sig_low  = iRSIGet(0);


What should I do to cause to show them different values ? 

 
nail sertoglu :

THX for your shared codes..

But when I tried the application on test and did not see any difference following ones

    they show same equal values for the following ones get from iStochasticGet , since they have ZERO within the paranthesis

   sig_buy  = iStochasticGet(SIGNAL_LINE,0);  
   sig_sell = iStochasticGet(SIGNAL_LINE,0);


for example if sig_buy is equal to 69 and s ig_sell is equal to 69 ALSO ?!?!?!


 and same equal values for the following ones get from iRSIGet, since they have ZERO within the paranthesis
   sig_high = iRSIGet(0);
   sig_low  = iRSIGet(0);


What should I do to cause to show them different values ? 

In the function ' iStochasticGet' and in the function ' iRSIGet', the value '0' is the number of the bar. To determine the signal, the value of indicators on the bar '0' is interrogated.

 
Vladimir Karputov:

In the function ' iStochasticGet' and in the function ' iRSIGet', the value '0' is the number of the bar. To determine the signal, the value of indicators on the bar '0' is interrogated.

with the following sentences seen at attached print screen from your code when they gave the same values how can we compare to decide to get buy or sell signal ? 

I tried to revised the application file ( attached ) according to other related codes ; since I am not experienced in mql 5 coding, please correct me , thanks in advance .

 
nail sertoglu:

with the following sentences seen at attached print screen from your code when they gave the same values how can we compare to decide to get buy or sell signal ? 

I tried to revised the application file ( attached ) according to other related codes ; since I am not experienced in mql 5 coding, please correct me , thanks in advance .


I have got "stochastic signal / main" related codes from : https://www.mql5.com/en/code/17562 


I have got " rsi " related codes from : https://www.mql5.com/en/forum/338954#comment_16987097

Get trend
Get trend
  • www.mql5.com
Author of the idea  — Yuri,  author of the MQL5 code  — barabashkakvn.  Short-term trends. The Expert Advisor uses two iMA indicators and one iStochastic. Compare the moving averages on the 15-minute and 1-hour chart. Trend exists if price on both charts is above or below the moving average. Once you have identified the trend, analyze the...
 
nail sertoglu:


I have got "stochastic signal / main" related codes from : https://www.mql5.com/en/code/17562 


I have got " rsi " related codes from : https://www.mql5.com/en/forum/338954#comment_16987097

 
 
nail sertoglu :

with the following sentences seen at attached print screen from your code when they gave the same values how can we compare to decide to get buy or sell signal ? 

I tried to revised the application file ( attached ) according to other related codes ; since I am not experienced in mql 5 coding, please correct me , thanks in advance .

Read the code of the adviser. Everything is clear in the code. There are no "equal values."

Reason: