joshatt
joshatt
Friends 1
joshatt
Added topic can tester communicate with real file and folder? (for debugging)
I have an EA from others, which copies, reads and writes csv file in MQL5/FILES folder under metatrader. It's too complicated, much over my coding knowledge but still I want to revise it a bit. So I did a simplified experiment and I found that, with
joshatt
Added topic OnCalculate function not found in custom indicator?
There's a given Moving Average indicator, it works in MT5. Now I'm trying to add a text object tagging the MA value of last bar. #property indicator_chart_window #property indicator_buffers 1 #property indicator_plots    1 #property
joshatt
Added topic in indicator, line draws but arrow does not
There's a given MACD indicator , which has 4 buffers and 2 plots ( ExtFastMaHandle and ExtSlowMaHandle don't draw). Now I'm adding another 2 lines (actually 1 histogram and 1 line) and 2 arrows, making it 8 buffers and 6 plots. The following is my
joshatt
Added topic why arrow does not draw in indicator?
Just begin to learn mql5 , the following is a simple test, the data is there, why arrow just doesn't draw?  #property indicator_chart_window #property indicator_buffers 1 #property indicator_plots    1 #property indicator_type1
joshatt
Added topic close[] when converting mql4 to mql5 ?
Just began to learn how to convert mql4 to mql5. I learned how to deal with close[] in OnCalculate(......const double &close[], ......), with "ArraySetAsSeries()". But in my own function "draw()", I also have to use close[], so I tried : void
joshatt
Added topic what really happens when dragging another currency pair to current chart?
I just wrote an indicator for a friend, which draws several TEXT objects near/at each Low[] of several bars, only on D1 chart. I also added a fixed "padding" to move those objects a tiny bit away from Low[] price. This indicator works fine for me
joshatt
Added topic differentiate mouseclick and ctrl_mouseclick, my code does not work
void OnChartEvent ( const int id,                    const long &lparam
joshatt
Added topic array or loop problem?
Senario:  in the current currency pair, open multiple positions, then manually close them one by one. The following function recountorders() works fine and I can test with ArrayRange(sl,0) showing order counts of the current currecy pair
joshatt
Added topic (solved)array out of range? not price related, maybe about OrdersTotal
Please close this dumb question..... the last two lines, I should use poscount instead of i. I'm working on this code, using a CButton, my purpose: when new position (not including pending order) added to the current symbol, or stoploss changed in
joshatt
Added topic ENUM font type does not work?
I did some search work, and the following code works with CButton font type:    string FontType = "Calibri Bold" ;    alertbutton.Font(FontType); However, my effort to make it an enum list failed: enum fonts   {
joshatt
Added topic any code out there with/including dropdown list/combobox button?
Recently I'm excited to find some youtube tutorials about onchartevent and button and dialog,etc. in official library. I successfully wrote a code with button, as well as with button in a dialog.  But then when I tried to code a dropdown list
joshatt
Added topic Assigning value failed? a basic question
#property indicator_chart_window extern string a= "1111" ; string b; int init()   { //--- 3 lines ---    if (b== "" )       b=a;    Print (b); //-------------------    return ( 0
joshatt
Added topic while and sleep?
Hi all, A friend of mine asked me a question, I simplified it down to the following test code: extern int        TimeInterval= 900 ;     // xx minutes to send the e-mail int start()   {
joshatt
Added topic How can I convert my mt4 indi to mt5 format WITH MQ4 EXTENSION?
Hi all, I still use mt4, and it does not fully support mq4 any more, though old ex4 file still works fine. Is there any tool to do the conversion for me? But I need the output WITH MQ4 EXTENSION
joshatt
Added topic what's the bug in this very simple line drawing code?
Hi, Today I accidentally find a code by @futurespec, which makes hand drawing a segment line on chart very easy. Thanks @futurespec! It's what I have been dreaming of, for a long time ! I spend a little time to transform this segment line indi into a
joshatt
Added topic MQL4 to MQL5? Why this histogram does not draw?
Hi all, It's been a long time, suddenly I find everything automatically turned into MQL5? The following code is a three MA indicator I've been using for a long time.( In MT5 first bar is 0? but this indicator still runs fine. MQL5 running in MT4 is
joshatt
Added topic not to lose variable value when changing timeframe or re-connect in INDICATOR?
Hi, Static, global, which should I use? ---- I want that variable keeps its value if I change timeframe or if auto re-connection. This is for an INDICATOR. Could anybody please help
joshatt
Registered at MQL5.community