Code to set last position active to my buy price and date
Author: Tobey
Creation Date: 2/11/2011 9:19 AM
profile picture

Tobey

#1
Hi Cone & Eugene,

I'd like to keep a Chart/strategy in the strategy monitor window for each of tickers I own that set the last postion active to the date and price of my buy price for that ticker. This would allow the selling strategy to give me an alert based on my buy price when the strategy monitor runs.

Is there code I could use to manual set the buy price and date in a strategy I use to monitor just one stock?

Once again thanks for all the help

Tobey
profile picture

Tobey

#2
Here is an example for a chart of CALX

CODE:
Please log in to see this code.


Hope this will make the request clearer

Tobey
profile picture

Eugene

#3
Without getting into the whys and wherefores of your request:

Import real (historical) trades from Community.Components
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).