Forum

OrderSelect issue

What's wrong with this?, total = CountTrades(); if (total == 0) flag = TRUE; for (cnt = OrdersTotal() - 1; cnt >= 0; cnt--) { OrderSelect(0, SELECT_BY_POS); if (OrderSymbol() != Symbol() || OrderMagicNumber() != MagicNumber) continue; if (OrderSymbol() == Symbol() && OrderMagicNumber() ==

Meta editor

My meta editor isn't working correctly, compiling doesn't work sometimes. Do i need to get a 'fresh' meta editor file, or is there some repair possible? Ed

expiration is alert

I want to add an expiration on my EA based on a alert of the indicator, how do i do that? How do i change a TRUE/FALSE or number value into a word value? I want to change extern bool Expiration=false;, or extern bool Expiration=60; into ……….. Expiration = 'an alert from my indicator' ; Ed

Insert indicators and EA

Can i make an expert advisor based on the indicators which are on the tab 'insert' , Fibonacci, Gann, in the MT4 platform? I can't find these indicators in any folder of the platform so i was wondering if i can make an EA out of the indicators. Ed

Pending orders

How many pending orders of one pair with the same price can the MT4 platform open at once? When i have to many pending orders open and it reaches the price it goes wrong, trade context is busy…. Ed

Indicator and chart

Is it necessary to load my used indicator for the expert advisor to the chart, or does the EA can 'read' it from the indicators folder alone? To much charts with the same indicator, and EA, makes my computer work like crazy…. Ed

Margin, free

Which code do i have to use if i don't want the ea to use 'free margin' or even 'margin'

Indicators too much...

Probably i have too much indicators in my platforms, demo and real, and run them on the same time so my computer runs slow. I want to remove the indicators that are not used but how can i do that in the best and fastest way. Should i do this manual, or is there a feature somewhere that detects the

EA and brokers

The purpose of an expert advisor, commercial or not, is to make money. But the brokers don't allow us to make money. So what's the right way to make money when trading with a real good expert advisor

difference in ECN charts

In The ECN platform there are ' normal' charts, Avg and Ask charts. There must be a difference between them, so which one, avg- ask, can give the best results for an expert advisor