Re: Coding Help

251
Mladen, I am checking one of your's genius Goertzel browser indicators and I am wondering is it possible to get thru iCustom or object call to get a value of dominant cycle (Rank 1, Prd value) of the same currency but from higher TF? Am I asking too much, maybe? :)

Thank you in advance!


Re: Coding Help

252
altoronto wrote: Tue May 09, 2017 7:30 am Mladen, I am checking one of your's genius Goertzel browser indicators and I am wondering is it possible to get thru iCustom or object call to get a value of dominant cycle (Rank 1, Prd value) of the same currency but from higher TF? Am I asking too much, maybe? :)

Thank you in advance!
Not, if you use buffers (ie: iCustom())
But what is there - and should be quite simple - is the Goertzel in a form of a function that can be used from any other code

Re: Coding Help

253
mladen wrote: Mon May 08, 2017 11:02 pm Dimitri

Since that is the way how those values are stored in that buffer, using it that way will produce correct results. Or you can change the original indicator - but then you would have to change more things.
Dear Mladen thank you for your explanation. Sorry, but i have not coding knowledge and my knowledge is very primitive, so when a problem comes out ... then if not possible to have help or suggestions-solutions like yours ... then not able to use it ...
Thank you so much again ....
Best Regards
Dimitri

Re: Coding Help

254
dear mladen,
please, i need help for alter this profit and loss indicator, please add some future with the history of maximum floating profit and loss value of opened positions. the reason is, if visual value of maximum profit and loss on the screen , i can take decision for put stoploss or closing the position with advance. i have attached the indicator with this. please , help me,
thanking you


Re: Coding Help

257
Dear Mladen,

I have two questions regarding the new MTF method:

Let's assume there is an auxiliary buffer used
during the calculation of the final (drawn) buffer.
Should it be emptified (aux_buffer[ i ] = EMPTY_VALUE;) or not?
And what about the buffer trend usually used
to determine colors depending on the line slope
and arrows for color changing?

Re: Coding Help

258
wojtek wrote: Mon May 15, 2017 6:25 am Dear Mladen,

I have two questions regarding the new MTF method:

Let's assume there is an auxiliary buffer used
during the calculation of the final (drawn) buffer.
Should it be emptified (aux_buffer[ i ] = EMPTY_VALUE;) or not?
And what about the buffer trend usually used
to determine colors depending on the line slope
and arrows for color changing?
I am afraid I do not understand the questions completely, so I will try based on what I assume :

1. Whatever buffer you use, if it is drawn, and you want to prevent it from being drawn you have to use EMPTY_VALUE (or the value you specified in the SetIndexEmptyValue() function) if you don't want it to be drawn on the chart at some moment

2. trend buffer usually should always have predefined values (I use +1 for trend up, -1 for trend down and - if used, 0 for no trend, but you can use whatever values you prefer). But using EMPTY_VALUE in the case of trend buffer would not have a purpose

Re: Coding Help

259
OK, thank you! This is an example with the additional buffer:

Code: Select all

aux_buffer[i] = a + b;
final_drawn_buffer[i] = 1.5 * aux_buffer[i];
Should aux_buffer which appears only in calculation
(e.g. in some recursive formula) be emptified?

The next question, please, regards the new price function:

Code: Select all

#define _prHABF(_prtype) (_prtype>=pr_habclose && _prtype<=pr_habtbiased2)
#define _priceInstances     1
#define _priceInstancesSize 4
double workHa[][_priceInstances*_priceInstancesSize];
double getPrice(int tprice, const double& open[], const double& close[], ...
If we want to use, say, the three price instances, should we only change the following line in the above code?:

Code: Select all

#define _priceInstances     3

Re: Coding Help

260
wojtek wrote: Mon May 15, 2017 7:22 am OK, thank you! This is an example with the additional buffer:

Code: Select all

aux_buffer[i] = a + b;
final_drawn_buffer[i] = 1.5 * aux_buffer[i];
Should aux_buffer which appears only in calculation
(e.g. in some recursive formula) be emptified?

The next question, please, regards the new price function:

Code: Select all

#define _prHABF(_prtype) (_prtype>=pr_habclose && _prtype<=pr_habtbiased2)
#define _priceInstances     1
#define _priceInstancesSize 4
double workHa[][_priceInstances*_priceInstancesSize];
double getPrice(int tprice, const double& open[], const double& close[], ...
If we want to use, say, the three price instances, should we only change the following line in the above code?:

Code: Select all

#define _priceInstances     3
wojtek

Very short answer : yes :)


Who is online

Users browsing this forum: No registered users and 24 guests