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.

Simple MA strategy
 Post subject: Simple MA strategy Post rating: 0   New post Posted: Mon 01 Aug, 2011, 07:55 

User rating: 0
Joined: Mon 01 Aug, 2011, 05:52
Posts: 19
Location: India, Jodhpur
I know basic mql4. I have mq4 for my trading idea which is similar to below one:

https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=7&t=9877

I got java code by using Jforex converter and used coding for trading only on specific instruments and periods. It compiled successfully but doesn't open any trade in history tester.

Support programmer can you make a simple strategy using below signal idea

open long if MA1>MA2, close long position if MA1<MA2
open short if MA1<MA2, close short postion if MA1>MA2

Configurable parameters
@Configurable("Instrument")
@Configurable("Amount")
@Configurable("Slippage")
@Configurable("Time frame")
@Configurable("MA1 type")
@Configurable("MA1 time period")
@Configurable("MA2 type")
@Configurable("MA2 time period") ;
@Configurable("Offer side")
@Configurable("Applied price")

I hope I will learn something from your code.

Thank you


 
 Post subject: Re: Simple MA strategy Post rating: 0   New post Posted: Wed 03 Aug, 2011, 12:16 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The strategy in the post that you gave (viewtopic.php?f=7&t=9877) does what you require.


 

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