gavin / Publications
Forum
Trying to add ordercomment() to a trade after partial close??
Is this possible in mt4? If so can anyone shed some light on how to do it. I have tried with no sucess. thanks
How do i Make my ea work with an ecn broker???????
I have a working ea but changed to an ecn broker. What should i change or add to the code to make it work
help required for a small function
I have a function here that i use to calculate the total risk per currency pair . I have it displayed on my chart so i know my total exposure if all trades on that pair hit there stop loss. void Pair_risk() { if (show_risk== false ) return ; int i; double trade_cash_risk,percent_risk; for
selecting a pair - and checking if a trade exists or not on that pair?
A question here for someonw who can help. I want to select a currency pair , then check to see if there is an open trade on that pair or not? >>> if no trade are open on that pair xyz............ thanks
MAJOR PROBLEM IN LATEST VERSION OF MT4
THE VALUE POINT IN LATEST BUILD OF MT4 IS READING 0 ????????? CAUSING PROBLEMS ON EVERY EA AND INDI OUT THERE
problem on reading from a binary file ?
void function() { int i; for (i = OrdersTotal ()- 1 ; i >= 0 ; i--) { OrderSelect (i,SELECT_BY_POS); bool tp1_allowed= true; if ( OrderSymbol ()== Symbol ()) { if ( OrderType ()==OP_SELL)
What am i missin in this loop????
void Function2_b() { if (Use_TP1==false) return ; int i; int MAGIC2; bool tp1_allowed= true; for (i = OrdersTotal ()- 1 ; i >= 0 ; i--) { OrderSelect (i,SELECT_BY_POS); MAGIC2 = OrderMagicNumber (); if ( OrderMagicNumber () ==
Question about trying to read from an array of numbers????
Hi all, I have an array of ticket numbers saved in a file (10 ticket numbers), What i am trying to do is; I want to search the array and read the 10 nunbers, then if my current ticket number does NOT match ANY of the 10 ticket mumbers i will then have a "bool xyz == false;" Is this possible to scan
Can i have more than one BIn files?
I have a few functions in my ea, one writes info to file, mydata.dat and the other to mydata.dat3 int handle3= FileOpen ( "mydata.dat3" , FILE_BIN | FILE_READ ); if (handle3> 0 )
Trying to select ticket number from history??
int i; for (i = 5 ; i >= 0 ; i--) { OrderSelect (i,SELECT_BY_POS,MODE_HISTORY); My problem here is; I have for example 12 tickets in my history, i want to select the most recently closed 5 tickects and read there tickect numbers. But my code here is