| 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 |
|
||||
:: hi! check the code inside this indicator... (for your opening time only, it's not an EA)
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
|
|
|||
|
Can anyone stop this from looping and looping?
Quote:
|
|
||||
|
Quote:
![]() I'll take a look |
|
||||
:: if it's always looping you have to stop calling your function [BEM] every price tick coming in ... check your other code ...
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
|
|
|||
|
ok? so how do you do that? can you give me a code i can add before BEM?
|
|
||||
:: BEM deals with your indicator signals right? like your pips & BE values that are calculated somewhere else in your code... well, do this comparison somewhere else... not looping every time in between your orders. I don't see the rest of your code... that's up to you...
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
|
|
|||
|
I'm still struggling with counting the stop loss bars from my earlier posts.
Looking at the original code, I've got a feeling that it might be flawed. It seems to be setting the stoploss at the bar low from "x" bars back rather than the lowest over the period of the "x" bars. It reads: Code:
SL=iLow(Symbol(),Period(),iLowest(Symbol(),Period( ),MODE_LOW,StopLossBars,0)); |
|
|||
|
I also have another problem with the code of my EA. I have a line which should close a position when certain criteria are met. One of the criteria is that the position is currently losing money.
This is the line: Quote:
Could somebody help please? |
|
|||
|
Right now this indicator posts bar openings that are greater than or equal to the previous opening in Green and lower than in Red. My question is how would I change this code to make the openings that are EQUAL to the previous opening show up in YELLOW?
if( X01 >= X02 ) { color_X01 = Lime ; } else { color_X01 = Red ; } if( X02 >= X03 ) { color_X02 = Lime ; } else { color_X02 = Red ; } if( X03 >= X04 ) { color_X03 = Lime ; } else { color_X03 = Red ; } if( X04 >= X05 ) { color_X04 = Lime ; } else { color_X04 = Red ; } if( X05 >= X06 ) { color_X05 = Lime ; } else { color_X05 = Red ; } if( X06 >= X07 ) { color_X06 = Lime ; } else { color_X06 = Red ; } if( X07 >= X08 ) { color_X07 = Lime ; } else { color_X07 = Red ; } if( X08 >= X09 ) { color_X08 = Lime ; } else { color_X08 = Red ; } if( X09 >= X10 ) { color_X09 = Lime ; } else { color_X09 = Red ; } |
![]() |
| 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 |