- Search Forex Factory
- 122 Results (16 Threads , 106 Replies )
- Candles- fat part vs tail/stemStarted Mar 23, 2009|Platform Tech|1 reply
How would one go about differentiating with code a candle that has a tail/stem hit a line vs one ...
- coach3131 replied Mar 23, 2009
I had a line of code wrong above it (a false instead of a true in the orderselect because I forgot to adjust after a logic change)... after that, it seems to work correctly and close trades out that have hung for 20 hours even in the strategy ...
Trade Duration
- coach3131 replied Mar 23, 2009
That isn't working.... { int numberOfOrders = OrdersTotal(); if (numberOfOrders > 0) { for (int cnt=OrdersTotal()-1; cnt >= 0; cnt--) { if(OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES)==false) {if (OrderSymbol() == Symbol() && OrderMagicNumber() == ...
Trade Duration
- coach3131 replied Mar 23, 2009
So, if I was wanting to close a trade after 20 hours, I can do something like this? if(TimeCurrent()-OrderOpenTime()>72000) then close trade
Trade Duration
- Trade DurationStarted Mar 23, 2009|Platform Tech|7 replies
Is there a function that measures how long a trade has been opened?
- coach3131 replied Mar 18, 2009
Right now, I am having no problems with 2009 at all... good results, minimal drawdown (5-6%).... Problems show up in 2008... see my post above... The problem I am having is that when I click "Open Chart" after a 2008 strategy test, I am unable to ...
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 17, 2009
I do have a stop loss strategy... it is based on the price deviating further... I need to do research though on adding to the exit strategy.... I am getting to see some patterns, and will be testing adjustments... there was some strange occurrences ...
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 17, 2009
Here it is.... I am looking at adding an additional exit strategy, especially for the draw down trades.... it seems that once a trade goes past a few hours it hangs for a long time... that is one option..... could use feedback on those hanging trades
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 16, 2009
No Friday Trading — Ok, I added a function for No Friday Trading and the results look much better :-)
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 16, 2009
Probably... they are on page 1
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 16, 2009
Actually, I need to put it in the logic not to open new orders on Friday... just to manage what is already opened which was part of the plan anyway.... I noticed the hanging one was a Friday trade and this strategy is not good to risk stuff hanging ...
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 16, 2009
Here is a working version Using EurUsd, it won 79 of 80 for me on the 1 min chart for Jan and Feb... there is one hanger that reduces the profits so I am thinking about adding a stop loss or an MA cross stop for something like that... I will do some ...
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 16, 2009
Thanks, I will give that a review as well as correct the error I found in the line4buy section in a couple of hours or so
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 16, 2009
I found one error in my line4buy code... I will correct it when I get back and see if that is the problem... or just a side problem
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 16, 2009
Because I am very new to this programming language.... obviously, I am not a programmer by trade, but I have been able to create some complex things with VBA/Excel.... it is a much simpler language though... I am more of an Analyst by trade
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 16, 2009
Sahron, If you take a closer look in the results, those that are hanging are being modified multiple times instead of just once right when the order is placed. It is this flaw in my code that I need to figure out how to fix. It should never be able ...
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 16, 2009
Fixed the hanging.... it is opening and closing trades now in strategy tester.... however, it is modifying trades more than once.... can someone please tell me what is causing that with the logic? If the linetrades<1 then it should never enter into ...
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 15, 2009
Here is the updated file... it is still hanging from the returns.... I added them in there where I thought it would end the check, but it apparently is not correct
First EA Version1 Near Completion- Need Help
- coach3131 replied Mar 15, 2009
Thanks Magnum! Randomizer working correctly now Thus, it all works correctly, except I think I need some returns in there... I didn't have to use returns in VBA... I would just use "End Sub" I think it is the returns problem that is hanging it up in ...
First EA Version1 Near Completion- Need Help