I’ve seen a few post here regarding ADL and algos on TT, so I wanted to give it a shot myself. I believe I have just created a working algo, but i’m not sure where to go from here.
Is there anyway to test the algo I just created? Once i’ve tested it, how do a bring it over to TT desktop to use for my trading?
So to test out your algos I would suggest to open up TT Desktop in a simulation enviroment and then open up the MD Trader(DOM) widget on a second window or monitor with the instrument specified in your algo. I would also suggest to open up an Audit Trail widget to watch the record of your algo’s activity.
The first test of your entry order logic is to make sure the algo correctly submits orders into the market with the default values specified in your algo. You will launch the algo in ADL and watch as it enters the market in MD Trader; you will also look for confirmation in the messages recorded in the Audit Trail.
But let me ask you, what if I want to put more than 1 lot at a time? It looks like right now I am stuck at 1 order qty per entry. Is there a way for me to change this?
Ok so basically you need to now test your user defined variables. If the rest of your algo is working then this shouldn’t be a problem, but we’ll need to alter a few settings.
You will change the Entry Order Qty to a non-default value before starting the algo. Then you will verify that changing the quantity while the algo is running also changes the working order quantity in the market.
To test your user-defined order quantity:
Make sure your algo is stopped; click |> if necessary.
In the Information Panel, click the Variables tab to display the variables used by your algo.
In the Variables tab, click the Value field for the Entry Order Qty block; then enter a different value and click Apply . You should choose a value large enough that it is unlikely to be fully-filled quickly. This example will use 100.
The wrk qty output port of the Entry Order block shows the new value (not the default Entry Order Qty value).
MD Trader shows the new order working a quantity (50, in this case).
8.Click |> to stop the algo and cancel the working order.
If everything seems to be working fine at this point, you are ready to update your algo to capture the price and qauntity data as fills occur for your entry order.