- Search Forex Factory
- 7 Results
- Aristarchus replied Jun 10, 2010
Hi Folks, I've attached a simple little indicator which shows the net profit of the basket over time. I just attached it to a one minute chart so I could have a record of the state of the basket since I can't watch it all the time. I hope you find ...
- Aristarchus replied Jun 9, 2010
Hi Robert, Thanks for the great new code. I'm testing now on H1 and it seems to be running fine. Trades are open - just not in profit yet. What build of metatrader are you using? I'm using v4 build 226 and BI_T101_OTR_V1_5 runs fine. Also are you ...
- Aristarchus replied Jun 8, 2010
Hi Don, My "Return" comments seem to have been a furphy since it didn't fix anything. I guess I just always "return" functions but it doesn't seem to be critical in mq4. I added them anyway in the code I just uploaded just in case it makes a ...
- Aristarchus replied Jun 8, 2010
Hi Don, I think you are correct . Since TotalOrders is set at the top of the Start() function the following while loop will never exit unless T101_CloseAll() decrements TotalOrders as it closes trades. while(TotalOrders > 0) { T101_CloseAll(); } ...
- Aristarchus replied Jun 8, 2010
T101_CloseAll() stuck in while loop — I've modified T101_CloseAll() as per the following: case OP_BUY: CloseOrder = OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_BID), 5, Red); OpenOrders = OpenOrders - 1; break; case ...
- Aristarchus replied Jun 8, 2010
T101_CloseAll() stuck in while loop — What about this: In T101_CloseAll() OpenOrders is being set however it is never reset and consequently you get stuck forever in the while loop. void T101_CloseAll() { int myOrderType; bool CloseOrder; int ...
- Aristarchus replied Jun 8, 2010
Return your functions — Hi Don, It looks to me like it's getting stuck in your subroutines. You should "Return" all your functions even the voids. Great work. Regards, Ari
- Posts by Member Search: 'Aristarchus'