Dukascopy
 
 
Wiki JStore Search Login

How to get the message on Message Tab generated by an Indicator
 Post subject: How to get the message on Message Tab generated by an Indicator Post rating: 0   New post Posted: Wed 12 Dec, 2012, 02:26 

User rating: 0
Joined: Wed 12 Dec, 2012, 01:51
Posts: 2
I have an old Indicator developed for MT4, that I compiled in Jforex.
It's working all fine and one part of the code:
...
if(displayAlert)
Print("RU");//DisplayAlert("Reverse bullish divergence on: ", currentTrough);
...
This print shows the message on the 'Messages' tab.

Also developed, there is a Strategy Java for Jforex that I would like to "read" the message sent by the Indicator and proceed with the code.
Tried to use event onMessage and get the result, but couldn't find anyway to read.
Any idea if is that possible and how to?

Thanks in advance.


 
 Post subject: Re: How to get the message on Message Tab generated by an Indicator Post rating: 2   New post Posted: Mon 17 Dec, 2012, 02:03 
User avatar

User rating: 3
Joined: Mon 05 Mar, 2012, 11:15
Posts: 24
Location: Indonesia, Jakarta
I think you can make a new array holding entry signal in your indicator source code.
This array would contains, BUY, SELL, NO_OPERATION.

Now in your strategy you can retrieve that signal, but first you need load the indicator manually.

https://www.dukascopy.com/wiki/#Use_custom_indicator_in_strategies


 
 Post subject: Re: How to get the message on Message Tab generated by an Indicator Post rating: 0   New post Posted: Mon 17 Dec, 2012, 19:27 

User rating: 0
Joined: Wed 12 Dec, 2012, 01:51
Posts: 2
Hi popopo,
Saw that, but still facing the situation where the Indicator is an old development in MT4 (just compiled for JF) and would need to 're-write' if need to implement the new array entry value.
And this is what I'm trying to avoid (kinda complicated one)! :(

Anyway that can I get a 'non-standard' message (on Message tab) while on the onMessage event for a Strategy? Not sure how that would be.

Thx for your reply! :) I used that similar into another case

Rgds


 

Jump to:  

  © 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