Can someone please show me what I'd add to MC's "Profit Target" signal's code (shown below) in order to get it to analyze Data2 and Data3 instead of Data1?
I tried doing it via the "Multi-Data Analysis" instructions on page 15 of this link http://bit.ly/1ShIdRK but could not get it to work.
(Note: on my chart Data1 displays Last prices, Data2 displays Bid prices and Data3 displays Ask prices)
The reason I want to do this is because I've ran into scenarios were the according Bid or Ask price reached my "Profit Target", but the Last price did not and therefore my "Profit Target" exit did not happen. I figure I can fix this issue by having the "profit Target" set to analyze Data2 and Data3.
Thanks!
Code: Select all
[IntrabarOrderGeneration = false]
inputs: PositionBasis( false ), Amount( 5 ) ;
if PositionBasis then
SetStopPosition
else
SetStopShare ;
SetProfitTarget( Amount ) ;