Coding help - page 665

techmac
2973
techmac  
kostumer27:

Mladen, I have questions. Is there a possibility to connect input value by this code:

main.cpp (adapter) 

1. Here, the main question. Is it possible to replace the array of used (but in a file that has exported the value of candles somehow shifts the story of five bars in the past one line down). I think dll adapter itself is universal.
And then I would like to change the code advisor - both here boot array to the current price:
  a) replace the boot array of price indicators to linear sequence of several indicators and OHLC(do not know how many 30 -300, bars?).

  b) how much the last price values ​​and indicators, and how it should be connected to dock with used library files from Neurosolyutions

  с) construction of the predicted pattern of candles. but rather it is necessary to alter the adviser to the indicator... 

     p.s.  if you can fix the code to display the code - you can use any of the names of the indicators (sample 1, 2 ...).  It aims to build - line, the Сlosing price (column, which I chose for predictions)...


2. Another way out(best way): If it is rational - I ask you to share the sample (if you possess them) neural network indicator(NS), working with at least two indicators(for multiple) from MT4 
If you have a legal Neurosolutions it should work
PJ
41
PJ  
mladen:

This is the part that handles the entries


Dear mladen,

Can you please help me incorporate a strategy to help ride the momentum of retracement/pullbacks/reversals/bounce back in short-time frames by modifying your 3 MA cross with aert mtf 3.03 ?

When 3 MA cross-over happens and the candle size exceeds the pips input by the user, the indicator is highlighted by bright color and bars ago number (to know the latest time of cross-over action) is printed on the candle and same way the candle is highlighted and bars ago number is printed when the bounce-back happens and the price crosses the middle MA.

I have been eagerly looking forward to your multicurrency MTF heatmap on MA crossovers. Hope you find time for it.

Thank you.

FxSteven
174
FxSteven  
      double trendCurr = iCustom(Symbol(),0,"HalfTrend 2",PERIOD_CURRENT,Amplitude,alertsOn,alertsOnCurrent,alertsMessage,alertsNotification,alertsSound,alertsEmail,6,y);
      double trendPrev = iCustom(Symbol(),0,"HalfTrend 2",PERIOD_CURRENT,Amplitude,alertsOn,alertsOnCurrent,alertsMessage,alertsNotification,alertsSound,alertsEmail,6,y); 

May i know how can i call  icustom from this indi ?

Have error form the "y".

('y' - undeclared identifier)   

Files:
Mladen Rakic
181811
Mladen Rakic  
stevenpun:

May i know how can i call  icustom from this indi ?

Have error form the "y".

('y' - undeclared identifier)   

That means that you did not declare the y variable. You have to have it declared (like in the code you are trying to call :

int y = iBarShift(NULL,TimeFrame,Time[i]);  
FxSteven
174
FxSteven  
mladen:

That means that you did not declare the y variable. You have to have it declared (like in the code you are trying to call :

I have try it before , and have the error 'TimeFrame' - undeclared identifier"   .

just confuse form this code where should i need to copy ?

{  int counted_bars=IndicatorCounted();
      if(counted_bars<0) return(-1);
      if(counted_bars>0) counted_bars--;
           int limit=MathMin(Bars-counted_bars,Bars-1);
           if (returnBars) { up[0] = limit+1; return(0); }
            if (TimeFrame!=Period())
            {
               int shift = -1; if (ArrowsOnFirstBar) shift=1;
               limit = MathMax(limit,MathMin(Bars-1,iCustom(NULL,TimeFrame,indicatorFileName,-99,0,0)*TimeFrame/Period()));
               for (int i=limit; i>=0; i--)
               {
                   int y = iBarShift(NULL,TimeFrame,Time[i]);  
                   int x = iBarShift(NULL,TimeFrame,Time[i+shift]); 


Mladen Rakic
181811
Mladen Rakic  
stevenpun:

I have try it before , and have the error 'TimeFrame' - undeclared identifier"   .

just confuse form this code where should i need to copy ?


You can not just copy a part of the code without having all the variables declared

In your case you have to declare the TimeFrame variable too

FxSteven
174
FxSteven  
mladen:

You can not just copy a part of the code without having all the variables declared

In your case you have to declare the TimeFrame variable too

Yes i have solve the problem , thanks :D

Now I trying to add others filter , if have any others problem hope you can give me some suggestion .

Mladen Rakic
181811
Mladen Rakic  
stevenpun:

Yes i have solve the problem , thanks :D

Now I trying to add others filter , if have any others problem hope you can give me some suggestion .

:)

Happy coding :)

yenPound
290
yenPound  

hi can u help me with this problem ? it seems like when price break out of a somehow long period of range price action , cci can't reflect the momentum good and with just a little pause in price and following the trend , cci starts to diverge . for example in this picture u can see at the end of second vertical line , cci has high momentum like price . price pause a little (first box) but after that cci starts to diverge .

my question is : why is that ? what type of price action may cause this from indicator coding point of view? 

i used 3(10.20.40) period to show this problem but i know if i use a period like 100 & add levels like -500,+500 this problem would go away (probably)


mladen:

:)

Happy coding :)

Mladen Rakic
181811
Mladen Rakic  
KumoBreake:

hi can u help me with this problem ? it seems like when price break out of a somehow long period of range price action , cci can't reflect the momentum good and with just a little pause in price and following the trend , cci starts to diverge . for example in this picture u can see at the end of second vertical line , cci has high momentum like price . price pause a little (first box) but after that cci starts to diverge .

my question is : why is that ? what type of price action may cause this from indicator coding point of view? 

i used 3(10.20.40) period to show this problem but i know if i use a period like 100 & add levels like -500,+500 this problem would go away (probably)


Sorry, but have no idea. What is sure is that we can not filter out single events without adjusting the whole math model, which would mean, in the case you describe, to have a completely new CCI (if that would rename the name in that case)