Dukascopy
 
 
Wiki JStore Search Login

tma bands
 Post subject: tma bands Post rating: 0   New post Posted: Mon 17 Dec, 2012, 14:38 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
hello support,

i have converted this indicator : TmaTrue.mq4. it works not perfectly but ...

so i try to rewrite directly on java code because i need to implement it on my strategy. for the moment,i use this indicator : viewtopic.php?f=6&t=47900, but this indicator repaint.

i have a good result with my strategy but it will be better with the no repainting version.
i try to learn how to do a indicator but for the moment my knownledge is not sufficient for translate the TmaTrue.mq4 indicator on java code and it not possible to use it if it's a converted version.

so, please please please do it for me as christmas gift :lol: .

eric


Attachments:
TmaTrue.mq4 [5.45 KiB]
Downloaded 295 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: tma bands Post rating: 0   New post Posted: Mon 17 Dec, 2012, 14:44 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
ericbiz wrote:
i have converted this indicator : TmaTrue.mq4. it works not perfectly but ...
Please elaborate
ericbiz wrote:
so i try to rewrite directly on java code because i need to implement it on my strategy.
You can use also the converted indicators in JForex strategies, see:
https://www.dukascopy.com/wiki/#Converted_indicator_usage_from_strategy


 
 Post subject: Re: tma bands Post rating: 0   New post Posted: Mon 17 Dec, 2012, 16:37 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
when i change the timeframe the indicator don't redraw and keep the previous timeframe and sometime it don't appear. for example my current timeframe is 4Hour, i applie the indicator, i change my timeframe for 1 hour.

Image

impossible to edit it when the indicator is applied on the chart.
impossible to change the atr multiplier execpt if i change the value with the keyboard, the arrow don't work.

Image

i would like to implement the indicator directly in my strategy . but this is the exhortation on the java code after converted :

package jforex.converted;
import java.awt.Color;
import com.dukascopy.api.*;
import com.dukascopy.connector.engine.*;
/** Disclaimer: Don't post this code when reporting an issue, post the mq4 file instead!
* The following source code is to be used for troubleshooting purposes only.
* Please don't use it for strategy/indicator compilation.
* Please do all necessary modifications in mq4 code instead,
* because the MQL4Functions method signatures are subject to change.
*/
public class TmaTrue extends MQL4ConnectorIndicator {

protected void initProperties() {
if (properties == null) {
properties = new Properties();


eric


Attachments:
arrowtma.png [87.53 KiB]
Downloaded 459 times
tma.png [26.43 KiB]
Downloaded 474 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: tma bands Post rating: 0   New post Posted: Thu 20 Dec, 2012, 13:01 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
ericbiz wrote:
when i change the timeframe the indicator don't redraw and keep the previous timeframe and sometime it don't appear. for example my current timeframe is 4Hour, i applie the indicator, i change my timeframe for 1 hour.
This is due to the indicator specific, which determines the timeframe only in the init method, we added the timeframe check also to the start method. Try:
Attachment:
TmaTrue_tfUpdate.mq4 [5.55 KiB]
Downloaded 309 times

ericbiz wrote:
i would like to implement the indicator directly in my strategy .
Please follow the instructions given here:
https://www.dukascopy.com/wiki/#Converted_indicator_usage_from_strategy


 

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