Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

using output of my own indicator
 Post subject: using output of my own indicator Post rating: 0   Post Posted: Thu 25 Aug, 2011, 19:52 

User rating: 0
Joined: Sat 09 Jul, 2011, 10:50
Posts: 7
Location: DE
Hi,
i bult my own indicator (myMACD) that basicaly does the same as the macd indicator using sma instead of ema (and yes i know this already been writen :) ).

now i want to build another indicator that uses the output of 'Beelzebub.java' (attached). I have read the "Indicator that uses the output of another indicator" wiki entry, but I have still no idea to use this info to achieve the following.

what I want is as follows.

1. for every new calculation i want to fill a 2d primative array with the last 24 values of the output of 'myMACD'.
2. i then want to run a function onto that 2d array that returns a float or double which is used as final output of the calculate function.

Thanks in advance, and pleas let me konw if I should provide additional information to my problem.

froid


Attachments:
Beelzebub.java [3.23 KiB]
Downloaded 321 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: using output of my own indicator Post rating: 0   Post Posted: Fri 26 Aug, 2011, 10:53 

User rating: 0
Joined: Wed 08 Jun, 2011, 10:19
Posts: 29
Location: North Pole
froidFX wrote:
.. I have read the "Indicator that uses the output of another indicator" wiki entry, but I have still no idea to use this info to achieve the following.
what I want is as follows.
1. for every new calculation i want to fill a 2d primative array with the last 24 values of the output of 'myMACD'.
2. i then want to run a function onto that 2d array that returns a float or double which is used as final output of the calculate function ..
If I understand you correctly ..
The article of the wiki has all the answers.
In short.. in the new indicator set Lookback to 24, and implement the necessary calculation function ..


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com