ziyang2048
ziyang2048
Friends 2
ziyang2048
Added topic Do I need to write magic number?
if I want to run different ea on different chart, so lets say I create "EURUSD" and "USDJPY" this two ea, I open two positions from this two ea, one from "EURUSD" and one from "USDJPY" if I want to change the position SL from "EURUSD", do I need to
ziyang2048
Added topic Does it matter if I don't put magic number in different ea if I want to put multiple ea of different chart?
because I only open position, I didn't open any pending order , magic number only useful when identify pending order, am I right
ziyang2048
Added topic why not all control paths return a value?
//+------------------------------------------------------------------+
ziyang2048
Added topic No history data
Why there's no history data
ziyang2048
Added topic Does anyone have some articles introduce about what I circle in the picture?
Does anyone have some articles introduce about what I circle in the picture? I try to find it but I don't know what key word I need to type
ziyang2048
Added topic where does the 0.0 come from?
double SLArray[]; void OnTick ()   {    ArrayResize (SLArray, 100 , 0 );    for ( int i = PositionsTotal ()- 1 ; i>= 0 ; i--)      {        ulong Ticket =
ziyang2048
Added topic Can't delete my object history.
Hi guys, I try to delete my object on my chart but when I choose all and I press delete then I buy, the object all apper again, why
ziyang2048
Added topic How to write a ea that's about to start when the newest tick generated?
Hi Guys, I want to write a ea but when I put it in the chart, it will wait until the current candle close, (for example :  double Close[];   ArraySetAsSeries(Close,true);   Copyclose(_Symbol,_Period,0,10,Close);  ), which is when
ziyang2048
Added topic How do I store the price?
MqlTick Ticks[]; void OnTick ()   {    double Open1 = iOpen ( Symbol (), PERIOD_CURRENT , 1 );    double Close1 = iClose ( Symbol (), PERIOD_CURRENT , 1 );    double Open2 = iOpen ( Symbol (), PERIOD_CURRENT
ziyang2048
Added topic I don't know how to write, need some help.
MqlTradeRequest Request; Request.sl = SymbolInfoDouble ( Symbol (), SYMBOL_ASK ) - 500 ; Hi guys, I want to set sl price to current price - 500dollar, but that does not work, so how can I write
ziyang2048
Added topic what's wrong with my code?
MqlTradeRequest Request; MqlTradeResult Result; MqlTick Tick; //+------------------------------------------------------------------+
ziyang2048
Added topic Can someone teach me how to code ea?
Im a beginner and I don't know how to code. sometimes I go to youtube  search like "how to code mt4/mt5 EA" something like that, it do recommend me a lots of goods video, but it still hard for me to understand especially english is not my
ziyang2048
Registered at MQL5.community