| 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 |
|
||||
:: then define every [if] statement what it can't be & that is NOT equal... at last use the equal statement for Yellow. Quote:
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
|
|
|||
|
I fixed it!
if (X01 > X02) {color_X01 = Lime;} else if (X01 < X02) {color_X01 = Red;} else {color_X01 = Yellow;} if (X02 > X03) {color_X02 = Lime;} else if (X02 < X03) {color_X02 = Red;} else {color_X02 = Yellow;} if (X03 > X04) {color_X03 = Lime;} else if (X03 < X04) {color_X03 = Red;} else {color_X03 = Yellow;} if (X04 > X05) {color_X04 = Lime;} else if (X04 < X05) {color_X04 = Red;} else {color_X04 = Yellow;} if (X05 > X06) {color_X05 = Lime;} else if (X05 < X06) {color_X05 = Red;} else {color_X05 = Yellow;} if (X06 > X07) {color_X06 = Lime;} else if (X06 < X07) {color_X06 = Red;} else {color_X06 = Yellow;} if (X07 > X08) {color_X07 = Lime;} else if (X07 < X08) {color_X07 = Red;} else {color_X07 = Yellow;} if (X08 > X09) {color_X08 = Lime;} else if (X08 < X09) {color_X08 = Red;} else {color_X08 = Yellow;} if (X09 > X10) {color_X09 = Lime;} else if (X09 < X10) {color_X09 = Red;} else {color_X09 = Yellow;} |
|
||||
:: everything is correct, except it will stop at 6 (not 7) Quote:
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
|
|
|||
|
stop and waiting reverse
Hi coders!
Have one question: Have got to code: buy close (TP or SL) after waiting sell setup. Process of: buy, close, waiting sell entry, sell, sell close, waiting buy entry, buy. Thank you the assistance! Bobojsza Sorry the bad english! Last edited by bobojsza; 08-27-2008 at 06:39 AM. |
|
||||
:: " i " is just a variable name so you can use whatever name. Like your " m ", use this variable name in the rest of your function.
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
|
|
|||
|
Quote:
execute code; Bars=iBars; } |
![]() |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
| 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 07: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 05:22 PM |