Download MetaTrader 5

Just want to program a simple function

To add comments, please log in or register
Interested in Signals activity? Come and track!
Pablo Estonia
17
Pablo Estonia 2011.03.04 04:37 

Hello again.

Actually I'm searching for a solution for weeks. I've been posting this problem in another way before. Now it's urgent ;-)


I try to build an EA with the following function:

1. One basis variable called "trend"

2. If the next tick is higher than the last, the variable "trend" increases +1

3. If the next tick is less than the last, the variable "trend" decrease -1

4. When the variable "trend" reaches 50 a buy trade with sl and tp is set

5. When the variable "trend" reaches -50 a sell trade with sl and tp is set

 

I'm an absolute greenhorn on MQL and general programming, so I tried a lot of programming the last days but nothing works yet...

I would bee glad to get some hints how to solute this. Thanks a lot! 

muller
559
muller 2011.03.04 11:10  

Look at Mql5 wizard

http://www.metatrader5.com/en/terminal/help/autotrading/custom_indicators
MQL5 Wizard: Creating Expert Advisors without Programming
  • 2011.01.11
  • MetaQuotes Software Corp.
  • www.mql5.com
Do you want to try out a trading strategy while wasting no time for programming? In MQL5 Wizard you can simply select the type of trading signals, add modules of trailing positions and money management - and your work is done! Create your own implementations of modules or order them via the Jobs service - and combine your new modules with existing ones.
To add comments, please log in or register