| 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 | Thread Tools | Display Modes |
|
||||
|
Quote:
Buffer 1 is defined as buffer 0 in init function, and buffer 2 is defined as buffer 1 in init SetIndexBuffer(0,buffer1); So the first buffer covers second, if the first buffer will be empty - u will see the other color.
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
|
||||
|
Quote:
Just wondering how can I write this in EA that if the line is BLUE then BUY and if the line changes its colour from BLUE to RED then SELL... Thanks |
|
||||
|
Quote:
Thanks |
|
||||
|
Quote:
I've noticed that the TriggerLines indicator has 4 buffers! 1- when the color is BLUE the 4 of them have values! 2- when the color is RED the buffers 0 and 1 only have values! So the code of the EA should be something like that: double signal = iCustom(NULL,0,"triggerlines",Rperiod,LSMA_Period,2,0); if (signal != EMPTY_VALUE) <--- Color is BLUE if (signal == EMPTY_VALUE) <--- Color is RED Give it a try! |
|
||||
|
Quote:
Thanks CG for all your help....i will try it now.... |
|
||||
|
Quote:
I have tried the code works fine but got 1 question...where there are more than 1 trades infact there should be only 1 trade when the colour of line has been changed..the areas are in the blue circle Thanks |
|
||||
|
Quote:
PHP Code:
|
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to define a static var in MT3.86 | lamanosky | Indicators - Metatrader 3 | 0 | 11-18-2006 12:43 PM |
| How can I define.... | babarmughal | Expert Advisors - Metatrader 4 | 6 | 11-10-2006 10:18 PM |
| Global colour change - possible? | niceguy777 | Setup Questions | 2 | 11-10-2006 12:15 AM |
| How to define a BAr........ | babarmughal | Metatrader 4 | 1 | 06-27-2006 12:47 AM |
| How to change line colour | billm | Metatrader 4 | 3 | 12-10-2005 05:39 PM |