| 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 (1) | Thread Tools | Display Modes |
|
|||
|
Problem with Point
I now use the following code and replace all occurances of Point with myPoint.
First I declare a global variable double myPoint; I then add the following line in Init function. myPoint = SetPoint(); Then add the function double SetPoint() { double mPoint; if (Digits < 4) mPoint = 0.01; else mPoint = 0.0001; return(mPoint); } This works whether the broker uses fractional pips or not. Robert |
|
|||
|
Quote:
PHP Code:
|
|
|||
|
Quote:
Robert |
|
|||
|
trailing stop needed
Quote:
I have over 10 types now. Robert |
|
|||
|
Today Yesterday Now functions..
I want to get a date range.
Yesterday at 5 PM to 3:00 AM today... then want to look at the bars between that range. I dont see a function to get the beginning of the day (seconds from 1970) I can do the math myself, by using modulus etc. but wondering if there any easy mt4 functions Im not seeing to do this.. There must be an easy way in MT4. Craig |
![]() |
| Bookmarks |
| Tags |
| CHinGsMAroonCLK, I_XO_A_H |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 06:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 04:22 PM |