| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (2) | Thread Tools | Display Modes |
|
||||
|
need help for simple code
Dear colleagues!
I have a piece of code for time filter which disable EA on particular hours: extern bool UseHourTrade = True; extern int FromHourTrade = 8; extern int ToHourTrade = 18; -------------------------------------------------// if (UseHourTrade){ if ((Hour()>=FromHourTrade && Hour()<=ToHourTrade)) { Comment("Non-Trading Hours!"); return(0); ____________________________________________ BUT I want to disable EA exactly on Friday before weekend. I don't need any open position after 8.00 CET on Friday. Could You do me a favour to post such kind of code or correct above mentioned code? I ask for Your advice because I'm not a programmer ![]() Best regards, Warren
__________________
Short Term Pain for Long Term Gain! |
|
||||
|
To reduce PC's resource
I saw sample code, usually each code calculate itself every ticks,
mean every single feed price from server, the group of code calculate by itself. Then PC's at client terminal will process or calculate every ticks, this make client PC's need more resource, like RAM & CPU Idea to reduce PC's resource & iteration at client terminal, If we can control that group of code to calculate at : 1. Every complete minutes and don't calculate at every ticks.Anyone can give sample code to do that ? best regards, BornToWin |
|
||||
|
Alert on any MTF indicator...
Codersguru,
Is it possible to add an Alert (preferably a voice) to a MTF indicator? I want to have the Alert sound when all 3 criteria are met in my RSI-3TF if possible. Thank you for replying. Sincerely.
__________________
"Risk comes from not knowing what you are doing" The Tao of Warren Buffett. "Avoiding mistakes, makes people STUPID and having to be RIGHT, makes you OBSOLETE." Robert Kiyosaki. |
|
|||
|
Quote:
PHP Code:
|
|
||||
|
Got the key ! Any other idea ?!
Thanks for reply Michel,
I got the key. But sometimes the volume of first tick of every M1 bar > 1 While iVolume() > 1 at the first tick, the calculation didn't done !? Or the first tick of that M1 bar must be = 1 ? And we can't change expression to >= 1, right ? That will make this idea turn to useless, cause it calculate to the end of that bar live ! My idea is to calculate only at the complete of TF M1. Any other idea ? BornToWin |
|
|||
|
Quote:
Anyway, you can use this: PHP Code:
|
|
||||
|
Thanks Michel,
Thanks Michel,
I will try it. Did you know where and how can we got server for MT4 that can feed simulation price at weekend ? This is to test our code at weekend ( non trading days ) Any idea ?
__________________
BornToWin Veni Vidi Vici ---------------------------------------------------------------- Knowledge is POWER, Experience is SKILL, Action got RESULT ! Yes I CAN ! |
![]() |
| Bookmarks |
| Tags |
| histogram, forex |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
|
||||
| Posted By | For | Type | Date | |
| OzFx System:) - Page 639 | This thread | Refback | 06-21-2008 09:53 PM | |
| Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart | This thread | Refback | 12-08-2007 11:46 AM | |