I am running an automated strategy and I can't set the take profit as a variable.
I need to set the profit target as the Pivot S2 for shorts or Pivot R2 for longs. In order to do so, I use two variables as Image1 shows.
Then I define Profit Targets as the variables (price). image2
The following error shows up and no Profit Target is placed. image3
I thought that variables were bad defined, but as proof of the variable value I am able to plot them. so I think what I am doing wrong is in the definition of the Profit Target
Please Help!! thanks a lot!
Comment