| / | Forum |
|
pjh606
2008.11.20 16:46
sI have been experimenting with various self-constructed EAs, but I cannot seem to get them to open at the beginning of a new bar (whatever time frame I use), after a trade has closed. Could someone point me in the right direction to where I could obtain the necessary code, so that a new trade opens in the bar after closing the previous trade, or explain why I’m having this problem? Thanks in advance. PJH |
|
Fallacies, Part 1: Money Management is Secondary and Not Very Important The first demonstration of testing results of a strategy based on 0.1 lot is becoming a standard de facto in the Forum. Having received "not so bad" from professionals, a beginner sees that "0.1" testing brings rather modest results and decides to introduce an aggressive money management thinking that positive mathematic expectation automatically provides positive results. Let's see what results can be achieved. Together with that we will try to construct several artificial balance graphs that are very instructive. |
|
abstract_mind
2008.11.20 17:21
int last_bar=0; int start() { ...... if(last_bar != iTime(Symbol(),0,0) ) { last_bar = iTime(Symbol(),0,0); // update flag //do your stuff here.... //..... } .... } |