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
252Not, if you use buffers (ie: iCustom())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!
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
253Dear 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 ...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.
Thank you so much again ....
Best Regards
Dimitri
Re: Coding Help
254dear 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
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
255mladen:
could you please recheck it
when symbol change,indicator have problem to showing new symbol
thanks
could you please recheck it
when symbol change,indicator have problem to showing new symbol
thanks
Attachments
what we want: 1+1+1+1+1+1+1+1+1=9
what market delivers: 1+2+8+7-4+0-5+8-4-5+1=9
what market delivers: 1+2+8+7-4+0-5+8-4-5+1=9
Re: Coding Help
256bilbaobilbao wrote: Sun May 14, 2017 10:17 pm mladen:
could you please recheck it
when symbol change,indicator have problem to showing new symbol
thanks
Try it out now
Attachments
Re: Coding Help
257Dear 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 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
258I am afraid I do not understand the questions completely, so I will try based on what I assume :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?
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
259OK, thank you! This is an example with the additional buffer:
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:
If we want to use, say, the three price instances, should we only change the following line in the above code?:
Code: Select all
aux_buffer[i] = a + b;
final_drawn_buffer[i] = 1.5 * aux_buffer[i];
(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[], ...
Code: Select all
#define _priceInstances 3
Re: Coding Help
260wojtekwojtek wrote: Mon May 15, 2017 7:22 am OK, thank you! This is an example with the additional buffer:
Should aux_buffer which appears only in calculationCode: Select all
aux_buffer[i] = a + b; final_drawn_buffer[i] = 1.5 * aux_buffer[i];
(e.g. in some recursive formula) be emptified?
The next question, please, regards the new price function:
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 _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[], ...
Code: Select all
#define _priceInstances 3
Very short answer : yes