PDA

View Full Version : Need help with Condition Builder


amberwest
08-06-2008, 02:49 PM
Hi, I'm new to NinjaTrader and need a little help with the Condition Builder on Strategy Wizard.

I read the User Help Guide, and can't find how to set a very basic strategy to run solely on the indicators and NOT the price.

For instance: I'm trying to set the conditions for a strategy to Enter Long when the ParSar crosses below the 5-SMA. And to Enter Short when it crosses above the 5-SMA.

I set the conditions to do that, but it seems to enter based on when the price (candle) crosses the 5-SMA and not the ParSar dot.

Any suggestions out there? Thanks very much!

Amber :)

NinjaTrader_Ray
08-06-2008, 03:48 PM
Here is an image to get you started.

This is how to build the condition:

PSAR crosses below 5 period SMA

amberwest
08-06-2008, 04:01 PM
Thanks Ray, I appreciate your reply.

I did that when I set the conditions. The problem I seem to have is that when I set the Action to enter long and exit short, it engages the trade when the candle/price crosses the 5-SMA and not the ParSar dot.

I need to know if there is a way to set the condition to only engage based on the indicator and NOT the price/candle.

Can you help me with that part please?

Thanks again!

Amber :)

amberwest
08-06-2008, 08:43 PM
Can anyone please help me with this?

I need to know if there is a way to set the condition to only engage based on the indicator and NOT the price/candle.

I set up the conditions on the Strategy Wizard, the problem I'm having is the trade engages when the price/candle crosses the 5-SMA, NOT the ParSar dot. I just need the trade to enter on the indicator alone.

Any ideas out there?

Thanks!

Amber :)

NinjaTrader_Ray
08-06-2008, 08:45 PM
What I showed you does exaclty what you want and NOT when price crosses the SMA. It could very well be that price crosses the SMA at the same time but I assure you that this condition checks the value of PSAR as crossing below.

amberwest
08-06-2008, 09:16 PM
Ok Ray, I try it again and see what happens.

Thanks for your help!

Amber

amberwest
08-08-2008, 03:49 PM
Hi, it's me again. I attached a screenshot of the problem I'm having with the Crossovers.

Please tell me how to set the conditions so the trade only enters and exits when the EMAs cross and not when the candle/price touches the EMA.

I have this same issue with the PSar indicator, I really want to know what to change when I'm setting the Condition Builder so the trades only engage on the indicators.

Thanks for your help!

Amber :)

NinjaTrader_Ray
08-08-2008, 03:55 PM
Those exits occur since when running a strategy you have "Exit on close" set to true. This means on the final bar of the day, your position is exited. Set this value to false and it will do what you want.

amberwest
08-08-2008, 07:44 PM
Hi Ray,

Thanks for your reply.

Please take a look at my screenshot and let me know if this is where you're talking about that should be marked "false".

It's the only place I can see to change it from true to false.

Thanks again!

Amber :)

NinjaTrader_Ray
08-09-2008, 10:59 AM
Its not found in the wizard.

When you run run a backtest or run a strategy in a chart or the strategeis tab, there is a Strategy dialog box that you must first review and press "OK" in order to run the strategy. "Exit on close" is found there.

amberwest
08-10-2008, 08:49 PM
Thanks Ray! Your last post fixed the problem I was having, it's working great now!

Question: Is it possible to set the strategy so the trade enters at the 1st candle after the crossover and not the 2nd candle?

(I attached a screenshot)

If I can enter and exit at the 1st candle, it would make a big difference.

Thanks again!

Amber :)

amberwest
08-10-2008, 08:56 PM
It's me again.

Can you help me understand how the Control Center Strat Tab calculates the dollar amounts?

I set my strategy to go back 45 days. Attached is a screenshot of the dollar amounts for each pair. It seems strange that some are a few dollars (GBPJPY) and others are thousands (EURUSD)??

How can I tell how many lots are being traded? (mini or standard)

Is there a way to run a history or report so I can see how far back these trades went?

Thanks very much! I can't wait to go live!!

Amber :)

amberwest
08-10-2008, 09:37 PM
Ok, I've been all through the Help Guide and can't find the answer.

How do I keep my auto trades running 24/7 when I turn my computer off?

When I try to exit, it asks if I really want to shut down.

Thanks for your help!

Amber :)

paco99
08-10-2008, 10:06 PM
Amber,

I don't think this is possible without hosting on a server somewhere. I'm pretty sure your computer has to be running 24/7 for your strategy to work.

I am new to NinjaTrader also, but that's how other platforms work that I know about.

Are you running it in live mode or just forward testing (no $$$)?




Ok, I've been all through the Help Guide and can't find the answer.

How do I keep my auto trades running 24/7 when I turn my computer off?

When I try to exit, it asks if I really want to shut down.

Thanks for your help!

Amber :)

NinjaTrader_Dierk
08-11-2008, 11:31 AM
@ambwest:
- all your NinjaScript strategies will be shutdown as you shut down NT
- ATM strategies will be restarted automatically as reconnect, but not NS strategies
- you can run reports on your historical trades on the "Account performance" tab

amberwest
08-11-2008, 08:22 PM
Hi Paco, thanks for your note. I'm still waiting to get the official word on whether you have to be running a live account to keep an auto trade running 24/7.

I'm just practicing for now, I hope to go live soon. I set the strategy to include the last 45 days, but I can't tell how far it goes back when it does the trade calculations.

Thanks again,

Amber

amberwest
08-11-2008, 08:26 PM
Can anyone tell me how far back the calculations go when you look at the dollar amounts in the Control Center?

I attached a screen shot from 9pm tonight, it looks a lot different than about the same time last night.

I don't know where to look to see how many lots it's trading and how far back the trades are going to get these dollar amounts??

Any help is appreciated!

Amber :)

NinjaTrader_Dierk
08-11-2008, 10:36 PM
To get detailed performance stats: select a strategy->Right click->Strategy performance

amberwest
08-13-2008, 02:58 PM
Hi Ray,

I'm getting closer to going live with this strategy. I just need your help on a few things please:

1. Where do I set the lot sizes for the FX trades?

2. Can you tell me how far back the dollar amounts go in the attached screenshot? I've been taking screenshots at 10:30pm every night and I can't tell how far back the trades are going to get those dollar amounts? I'm guessing they're standard lots, but some of the dollar amounts are $4k and others are like $36???

3. When I go live with Forex.com, these trades will be hosted on their server right? Will I have to keep my computer turned on to keep the auto trades running?

Thanks, I really appreciate your help!

Amber :)

NinjaTrader_Ray
08-13-2008, 03:09 PM
1. You can set trade size on the Strategy dialog screen when running live or in a backtest. Please be sure to read this - http://www.ninjatrader-support.com/HelpGuideV6/RunningFXStrategies.html

2. You can right click on a strategy and select Strategy Performance > Real-time and Historical. You can get a complete trade listing their.

3. Orders are on their servers and yes, NT must be running to auto-trade