poiuy:
hi, 1- how can I set below expert advisor in my fxopen navigator? I like sometimes it trades with more than 0.1 lot. 2-do you know best currency-pairs & timeframe for this ea? 3-it opens & closes positions itself but after open a position, there aren`t any stoploss or takeprofit on the terminal, they are zero(sl & tp), isn`t that dangerous? I`ve enclosed from my metatrader metaEditor the MOVING AVERAGE EA progrom below.
extern double Lots = 0.1; extern double MaximumRisk = 0.02;
You'll have to figure out what those settings do vs. what you want- How should we know, you should ask the coder, or test it yourself.
- Very dangerous. modify the code.
- You pasted the first few lines. For large posts, attach the file. for small ones
- No Slaves here, learn to code or pay someone. We're not going to code it FOR you. We are willing to HELP you.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
//| Moving Average.mq4 |
//| Copyright © 2005, MetaQuotes Software Corp. |
//| https://www.metaquotes.net// |
//+------------------------------------------------------------------+
#define MAGICMA 20050610
extern double MaximumRisk = 0.02;
extern double DecreaseFactor = 3;
extern double MovingPeriod = 12;
extern double MovingShift = 6;
//+------------------------------------------------------------------+
//| Calculate open positions |
//+------------------------------------------------------------------+
int CalculateCurrentOrders(string symbol)
{
int buys=0,sells=0;
//----
for(int i=0;i<OrdersTotal();i++)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break;
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MAGICMA)