PDA

View Full Version : Where are the methods and classes references?


gsmaster
07-12-2007, 02:49 PM
Hi dear Support,

I am new at NT but am an experienced programmer, I am looking for a list of all the possible functions/methods or libraries already available for the programmer so I do not reinvent the wheel :)

On the other hand I have been experimenting with the Order settings without being able to achieve exactly what I want... I am not quite sure why it doesnt happen the way I want but I suspect it has to do with the CalculateOnBarClose...

Maybe if I give you some details of what I want achieved you might be able to give me some details and therefore learn more about this specific area of the process of developing a strat.

example:

Assume I have this condition (could be any)

if (high[0]>high[1])
{

/****
Once I encounter this condition I want to be able to do the following:

1) Set 1 Stop limit order Long at high[0]+1*Ticksize
2) Set 1 Stop limit order Short at low[0]+1*Ticksize

Once this is set and one of the orders is filled I want to delete the one that is not filled and immediately set a STOP LOSS order on the very same bar of the condition at one of the extremes

Assume for this example that I would like to have a profit target at the close of the bar of ENTRY , I tried to do that but I get "filled" at the open of the next bar.... (assume is because of the way bars are counted since no tickbytick)
********/
}


That is all for all :) I will really appreciate your help on this matter ...

thanks in advance

Gustav

Gumphrie
07-12-2007, 03:00 PM
Most this stuff is in the help file. The Intellisense will tell you the rest.

If you want tickbytick make sure to specify "CalculateOnBarClose=false;" in Initalize()

NinjaTrader_Ray
07-12-2007, 03:14 PM
Hi Gustav,

AS Gumphrie kindly pointed out, its in the Help Guide. Look for the "NinjaScript" section. There is a lot of documentation contained therein.

Welcome!