Jump to content
Sosa

Price Target Hot Key Issues - Help!

Recommended Posts

I've been using Kyle's dynamic dollar risk with a hard stop hot keys for the last couple months in sim and they have been working great. Recently as a part of a new edge I'm testing I'm scalping momentum around HOD/LOD breaks. I've been trying to set my scale out orders at the predefined R values given the hard stop I used to autocalculate the share size and enter the original position. Currently I trade all symbols from 1 montage and only trade 1 stock at a time. Below is the script I've been using for the scaling out from a long position at 0.5R/1R. It seems to work on the first trade of the day or the first trade in Replay mode and then it doesn't work and the price of the sell order is way too high and not accurate to my 0.5R or 1R target partial exit. I'm assuming it has something to do with the StopPrice field in the montage not updating? Does anybody have a recommended solution or fix?

Long Position Sell 50% at 0.5R

Route=Limit;Share=Pos*0.5;Price=AvgCost-StopPrice;Price=Price*0.5;Price=Price+AvgCost;Price=Round2;TIF=DAY+;SELL=Send

Long Position Sell 50% at 1R

Route=Limit;Share=Pos*0.5;Price=AvgCost-StopPrice;Price=Price*1;Price=Price+AvgCost;Price=Round2;TIF=DAY+;SELL=Send

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.