Answer by Damon · Mar 10 at 01:11 PM
When entering your OTA Order Price in a UDV...... you MUST enter the full displayed number value without using a decimal format. Dont use the decimal format displayed in the MD Trader Window for your contract price.
MD Trader Window price display....2373.25
ADL OTA Price input (from UDV)....... 237325
Answer by Damon · Mar 09 at 07:22 PM
In the new TT platform..... You would still use the same function of having your Number Block set to Order Price. Then while on the canvas..... you simply type in the Price you want it to submit orders from, and then click PLAY button. This will be just like you would be clicking on the MD Trader Window. Then when you type this price in/ Click PLAY.... you can see it work on the canvas.
When using this UDV Order Price function outside of the ADL Design Canvas. It will function by clicking on the PRICE wanted from the MD Trader Window with your mouse.
Answer by Daniel · Mar 09 at 07:47 PM
The last part of the logic explained is where I'm having trouble.
If I use a Price Block set to Order Price I am presented with an MD Trader window graphic which still needs a selected price from the canvas..a little better than typing in numbers but I'm trying to get either the Price block or the Number block set to Order price or UDV to pull in the price I select on MD Trader.
I start the algo and nothing should happen until I click price on the MD trader window.When I do it does not communicate with the canvas Price or Number blocks.If I recall correctly,this use to work in X Trader and I suspect this was because the app was a desktop app making 2 way communication locally possible.
In new TT is there a live 2 way communication between MD trader and the design canvas if the same algo is selected both in the canvas and in the MD Trader window?
What am I missing or does this function correctly only with an official account and not the Delayed Demo Environment?
Answer by Damon · Mar 09 at 09:55 PM
A few things to go over here..... if you are wanting to test your algo logic from the ADL Design Canvas. Use a Number Block set to Order Price....plain and simple. Yes you have to type in the price you want the order to be submitted at, but you are testing your algo right? This is the best and simplest way to be doing this. Using the Price Block...... sure this is a great way to not have to type in a price. But.... I feel you get a much easier way to test your logic by using the Number Block set to Order Price.
Also this way....... when you go to use this in LIVE and from an MD Trader Window for your OTA algo. You never have to type in the price to the Number Block. You just click on the price you want. This is the same thing as when you were testing on the Canvas..... you typed in the price and clicked the PLAY button. Also..... if you need to reference the output LIMIT Price you click from the MD Trader Window. Using a VE Block to take a snapshot of the output from the Number Block set to ORDER PRICE..... it will then use the CLICKED price from the MD Trader Window.
Test all this and experiment with it in the SIM and I am sure you will see that you can easily adapt the functionality you are wanting for your OTA with the Number Block and having it set to ORDER PRICE. Again....this was the main way it was done back in the X_TRADER 7.X platform.
Answer by Daniel · Mar 10 at 01:39 AM
Notice the top VE Block..the Formula is set to Message Field "limit price"...it pulls in a price of 2350 no matter what value is entered in the Number Block.Where is this value being taken from?The bottom VE block is set to Block Value referencing the Number Block which as you can see is set to "Order Price"...it will display the value of the Order Price.