I know a code in simpler syntax and I am new to the Forex (about a month)
I am attempting to make adjustments to an EA and thus going line by line to comprehend that the Forex logic (and syntax) with certain segments... this is a section that I'm trying to understand as I wish to ensure that the code does not open orders on Friday, however if transactions are still open going into Friday to allow it to manage them without closing them
Thanks so much for your help!
int OpenOrders=0, cnt=0;
extern bool TradeOnFriday=False;
int OrdersTimeAlive=0; // in moments
// should dont trade fridays then we shut all
if (! TradeOnFriday DayOfWeek()==5)
text = text\nClosing all orders and stop trading since TradeOnFriday protection.;
Print(Closing all orders and stop trading since TradeOnFriday protection.) ;
// Orders Time living protection
if (OrdersTimeAlivegt;0 CurTime() - LastOrderOpenTimegt;OrdersTimeAlive)
text = text \nClosing all orders since OrdersTimeAlive protection.;
Printing(Closing all orders since OrdersTimeAlive protection.) ;
Are there any developers that can spend 10-15 minutes on a chat with me so I can edit an EA, personally to give me direction?
I discovered a function for broker digits... there is a set of templates with this EA that also requires the broker multiplying ratio for this, but I do not know how to call that into a template document since the .tpl file appears like it is all text and it is not doing any function work
I understand a code in easier syntax and I am new to the Forex (about a month)
I am trying to make revisions to an EA and thus going line by line to understand the Forex logic (and syntax) with specific sections... this is a section that I'm attempting to understand as I wish to make sure that the code doesn't open orders on Friday, however if trades are still open going into Friday to allow it to handle them without closing them
Thanks so much for your help!
Better to use TimeDayOfWeek instead if you plan on running the EA throughout the egy tester. Dayofweek will return the current day of the week at the egy tester.
Well, as a result of Ronald, I was able to fix the Market Execution now I know how to get it done with all EAs Where can the print work print to? I am getting SendError 131 which is a lot size problem related to my broker.... If I place it to print lot size, where is that information going to? I am acquainted with msgbox work on vba once I want to see a factor value pop up during implementation Right now, this EA is closing everything on Friday.... I will work to fix that following... why would you indie the change from DayofWeek==5 to TimeDayofWeek==5? Can you describe the logic behind it? Right now it is checking to see if it is Friday and closing all trades... when I do the edit, I'll want it to check to Find out if it is Friday and not open any new ones, and Perhaps certain rules on How Best to manage Those That are still open entering Friday
All times are GMT. The time now is 12:11 AM.
Risk Disclosure: CLIQforex will not accept any liability for loss or damage as a result of reliance on the information contained within this website including data, quotes, charts and buy/sell signals. Please be fully informed regarding the risks and costs associated with trading the financial markets, it is one of the riskiest investment forms possible. Currency trading on margin involves high risk, and is not suitable for all investors. Before deciding to trade foreign exchange or any other financial instrument you should carefully consider your investment objectives, level of experience, and risk appetite.
CLIQforex would like to remind you that the data contained in this website is not necessarily real-time nor accurate. All CFDs (stocks, indexes, futures) and Forex prices are not provided by exchanges but rather by market makers, and so prices may not be accurate and may differ from the actual market price, meaning prices are indicative and not appropriate for trading purposes. Therefore CLIQforex doesn’t bear any responsibility for any trading losses you might incur as a result of using this data.