Though trading on financial markets involves high risk, it can still generate extra income in case you apply the right approach. By choosing a reliable broker such as InstaForex you get access to the international financial markets and open your way towards financial independence. You can sign up here.
can you make a code for me. i want entry market automatically just when US session. Open BUY when the price above Open Market and Open Sell when the price below Open Market. Stop lose 20 and there is no profit target just close when US session end. thanks
Though trading on financial markets involves high risk, it can still generate extra income in case you apply the right approach. By choosing a reliable broker such as InstaForex you get access to the international financial markets and open your way towards financial independence. You can sign up here.
great thread, can you make an EA code based on the intersection of the RSI indicator (14, close) with Simple MA indicator (3, previous indicators data). I have tried making it but it does not go as expected because of an error writing the code for Simple MA indicators (3, previous indicators data).
Though trading on financial markets involves high risk, it can still generate extra income in case you apply the right approach. By choosing a reliable broker such as InstaForex you get access to the international financial markets and open your way towards financial independence. You can sign up here.
Thank you for you show the codes here.Now I just wonder whether you have time to teach me to write the codes.Maybe I should ask you will you teach me these codes there?I wish I can manage the code myself.
Though trading on financial markets involves high risk, it can still generate extra income in case you apply the right approach. By choosing a reliable broker such as InstaForex you get access to the international financial markets and open your way towards financial independence. You can sign up here.
Though trading on financial markets involves high risk, it can still generate extra income in case you apply the right approach. By choosing a reliable broker such as InstaForex you get access to the international financial markets and open your way towards financial independence. You can sign up here.
Though trading on financial markets involves high risk, it can still generate extra income in case you apply the right approach. By choosing a reliable broker such as InstaForex you get access to the international financial markets and open your way towards financial independence. You can sign up here.
Here is the code fuction which will return the total number of lots which are currently running in open trades :
Parameters: key is magic number, and type is the type of trades .
Code:double gettotallot(int _key, int type) { double _lot=0; for(int k=OrdersTotal(); k>=0; k--) { if (OrderSelect(k,SELECT_BY_POS,MODE_TRADES)&& OrderSymbol()==Symbol()&& OrderMagicNumber()==_key && OrderType()==type) _lot+=OrderLots(); } return(_lot); }
Alizahid (2020-10-20)
Here is code function which can be used say when ea needs to trade only during certain hours of the day and skip of certain day of the week :
Code:bool ValidTime() { if (DayOfWeek()==1 && Hour()<=6) return(false); return(true); }
Alizahid (2020-10-20)
Here is a code which can be saved as a script file in the Scripts Folder.
To execute the script, drage and drop the script on the current chart, this will close all open trades and also pending orders of all symbols.
Code:int start() { double total; int cnt; while(OrdersTotal()>0) { // close opened orders first total = OrdersTotal(); for (cnt = total ; cnt >=0 ; cnt--) { if(OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES)) { switch(OrderType()) { case OP_BUY : RefreshRates(); OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),3,Violet);break; case OP_SELL : RefreshRates(); OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),3,Violet); break; } } } // and close pending total = OrdersTotal(); for (cnt = total ; cnt >=0 ; cnt--) { if(OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES)) { switch(OrderType()) { case OP_BUYLIMIT :OrderDelete(OrderTicket()); break; case OP_SELLLIMIT :OrderDelete(OrderTicket()); break; case OP_BUYSTOP :OrderDelete(OrderTicket()); break; case OP_SELLSTOP :OrderDelete(OrderTicket()); break; } } } } return(0); }
Alizahid (2020-10-20)
Here is the Code that you can put in any EA to take a screenshot of the Chart and save it to disk, you can call this on any event like if there is any new trade taken, you can save the screenshot.
the system function to take screenshot is:
Code:WindowScreenShot(filename,size_x,size_y)
Here is the example usage:
Code:string filename= "Chart"+Symbol(); WindowScreenShot(filename,570,428)
The above will save the chart with name "ChartEURUSD". You can make the filename very dynamic so every time screenshot is taken, it would save it with different name.
Alizahid (2020-10-20)
There are currently users online. members and guests
Threads:
Posts:
Member: