Okay... so the strategy is moving right along... getting close to being able to trade it live... pure lovliness! BUT... I have not a CLUE how to set up the orders.... not a clue, and I'm getting slaughtered in SIM.

Do I set the trigger "bars ago" to one bar ago? Do I set it to the current bar? Not a clue...
Do I set the strategy to calculate on bar close? Not a clue...
Here's what I'll be doing... maybe someone here can take a moment and help me get my head around this one... I would REALLY appreciate that! (so would my 401K).

Okay... the strategy is a crossover strategy... pretty simple.
When one line crosses over another, a signal is generated... enter a trade at the first tick of the next bar that forms.
Now... I'm using 6 range bars... so the bar that creates the crossover is pretty long in terms of time usually. I don't want to enter on that bar, but I DO want that bar to be the trigger (in other words, it's the one which starts the cascade). Sometimes the crossover occurs right at the start of that bar... and then retraces sometime later during the formation of the bar... which causes the crossover to UN-crossover, and prices to reverse.
So... I've decided to wait until the next bar for entry... by which time the crossover is usually well underway according to my tests.So... what I've decided to do is wait until that bar has closed... and then... at the very first tick of the next bar... enter the trade.
The way I have it set up now is:
1. In the crossover condition setup in the strategy wizard, I have the "bars ago" set to 0. In other words, I've said: "if the crossover occurs during the formation of the current bar, wait... and enter on the first tick of the next bar." However, in sim, with live data feed, seem to be late by one bar (one 6 range bar is a lot of money to be giving away due to an entry error). Yep... that's me... clueless...
2. I have the strategy set to calculate on bar close == true (checkbox is checked). Should this be set to false? (I know this won't work in backtesting, but for live trading, I want to get in at the very open of the next bar.).
3. As far as the entry setup goes... if I say: "Close[0] + 1 *TickSize" for the long entries, should it be "- 1" for the short entries?
4. Finally... during SIM trading... I have a profit target set at 8 ticks, with a stop loss set at 8 ticks. When I set the entry criteria to "getcurrentbid" or "close[0] + 1" I keep getting the following errors:
"AMP Live, Sell stop or sell stop limit orders can't be placed above the market. affected order: blah blah..."
In addition to that error, I also get: "Strategy has sent cancel requests, attempted to close the position and terminate itself." Huh?
Again... not a clue... But... by a few days from now... with your wonderful help... I will be a trade NINJA!!!
As always, my trading and coding friends... any and all help is greatly appreciated, and I look forward to learning more from you.
-V




Comment