Download MetaTrader 5
To add comments, please log in or register
Make screenshots in MetaTrader and manage them in the gallery!
silvio santos
43
silvio santos 2011.04.21 19:20 

HELLO ALL,

IM A C# PROGRAMMER AND I WOULD LIKE SOME HELP TO PROGRAM THIS FOLLOWING EA:

WHEN SILVER 1 HOUR CANDLE FALLS: X% FOR EXAMPLE, EVERY ONE HOUR CANDLE OF -1% ON SILVER... OPEN A BUY WITH A STOP LOSS.

I WOULD LIKE TO TEST THE STRATEGY BUT DONT KNOW THE MATH AND COMMAND NECESSARY.

ANY HELP WOULD BE VERY APPRECIATED !!

THANK YOU VERY MUCH COMMUNITY !!

NFTrader
597
NFTrader 2011.04.21 22:35  
I advice you to read the documentation and see the code of a sample EA like moving averages EA (its in the C:\Program Files\MetaTrader 5\MQL5\Experts\Examples\Moving Average), then you will get an idea of code structure in MQL5.

NFTrader
597
NFTrader 2011.04.22 12:41  

a good place to start though is

https://www.mql5.com/en/articles/100

Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners
  • 2010.06.09
  • Samuel
  • www.mql5.com
The Expert Advisors programming in MQL5 is simple, and you can learn it easy. In this step by step guide, you will see the basic steps required in writing a simple Expert Advisor based on a developed trading strategy. The structure of an Expert Advisor, the use of built-in technical indicators and trading functions, the details of the Debug mode and use of the Strategy Tester are presented.
/
To add comments, please log in or register