- Topics: 4
- Replies: 13
- Posts: 17
Heres my code I use for a stop loss. Maybe you can use this as your starting point and instead of the stop price it’s your buy price.
I made a user defined script for the Stop Level and then use DATAFIELD to pull those numbers in.
Script Name: Price vs Stop
(LAST() – DATAFIELD(FEED=UD, FIELD=Stop_Level) )/ LAST()