Michael Miller
Michael Miller
  • Information
7+ years
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Michael Miller Trademark Guardian at Boulder, Colorado
For the last 35 years I have been a Pilates instructor. Out of the pursuit of that passion came the awareness of Cornu Tension within the body. My goal in FX is to create a library that returns trading signals between currency pairs based upon the same tension.
Michael Miller
Michael Miller
//+------------------------------------------------------------------+
//| CONVERTING POSITION TYPE TO A STRING |
//+------------------------------------------------------------------+
string PositionTypeToString(int position_type)
{
string str="";
//---
if(position_type==0) { str="buy"; }
if(position_type==1) { str="sell"; }
//---
return(str);
}


and then:

string buyorsell;
buyorsell = PositionTypeToString(buyorsell);
Print(buyorsell);

but the only thing that prints out is "buy" no matter what the position--none, buy, sell.

still reaching...
Michael Miller
Michael Miller
I'm trying to figure out the code to determine if there is a buy or a sell position open.
Something like:
int positionType;
positionType = PositionGetInteger(POSITION_TYPE);
Print(positionType);
Michael Miller
Added topic disappearing trades
Hello, I working on an EA that trades for breakouts. Learning lots. Just recently, the trades get made, show up briefly on the chart and then disappear. Have no idea what is going on. If you could point me in the right direction for a problem
Michael Miller
Added topic Market Watch gone crazy!
Hello, W‌hen I try to enter an order using the Market Watch, it goes crazy entering dozens of buy and sell orders . Is this supposed to work this way? Do I have a setting off? What trips all this orders? I haven't a clue. ‌‌Thanks if you can help
Michael Miller
Added topic Terminal File Access
Greetings, I‌'d like to access the Terminal file that is on my phone. MQL5. I‌s there a way to export it? ‌‌Thank you, in advance. ‌‌michaelMiller
Michael Miller
Registered at MQL5.community