Hi! My ea puts opening and closing arrows plus trend lines connecting them on chart. It names those objects, starting with '#'. When testing, for the sake of not cluttering the chart, I want to delete all those chart objects (starting with '#') but
Hi! On chart, I have TREND and HORIZONTAL lines ; 'Description' fields are filled with 'orders'; 'orders' are recognized by crossedLine() function - if price crosses the line (trend or horizontal), do something...; 'orders' are {"buy", "sell"...}; if
Hello! Attached is raw EA, which should, to some of us, serve as an example of coding and using (simple) buttons on MT4 chart. EA goes under Experts folder. <ChiFunctions.mqh> goes under Include folder. Then compile and test. Buttons toggle
Hi! I want to explicitly convert 'enum' type into 'int' type. // --- global variables --- enum TRADE_TYPE{DontTradeType,TradeType,BuyOnlyType,SellOnlyType};TRADE_TYPE Trade_type; // then I pass 'Trade_type' into function call - SetBtnText(setSparam
Hi! I just can't find sample code to select either vertical or trend line (actually both) on chart. The idea is to (toggle with button) hide/show objects on chart, i.e. vertical and trend lines (which clutter my chart, but i am possessed (LOL) and
Hi! Is there a short way to pass 'object_name' parameter from ObjectFind() forward into another (custom) function ? Like: int OnInit () { ... if ( ObjectFind ( 0 , "above" )== 0 || ObjectFind ( 0 , "below" )== 0 )
Hi! I have EA which has global variable [bool Trade=false;]. I need a function that would check if a line on chart has been crossed, it will enable trade [Trade=true;] , then 'wait' for 1 order to be opened (when trading conditions are met)
Hello! I have a script, which plots data from .csv, as vertical lines with (or without) text. At the script start, I would like to be able to select timeframes that those vertical lines (and text) should be plotted on. Like: input int
Hello! I have a script which plotted vertical lines from csv file. Now it is not working anymore. Can someone please help me and revise the code, and fix it. Attached is script and csv file, which goes under ...MQL4/Files folder. Thank
Hello! Me Simon. I have CTRL-C -> CTRL-V coded EA. Then I have bit recoded it, since I have learned bit on the go. Had problem with 'lastIsBE' function . So recoded it again, especialy this mentioned function. But... still have same problem as
Hi! I have EA (Yeaaa!) which uses selectable Time Frame TradeOncePerBar function. I want to store the value in GlobalVariableSet to prevent EA trading in same Bar when MT4 or EA restarts. Original function for TradeOncePerBar is: if (CheckAlertTime