hi, i'm new with pinescipt and i would have a great need for help .. practically i would like to understand how to make a strategy with:

  • an upper limit order of 0.5% from the shadow of the candle when the red square occurs (let's indicate it to understand varEntry) -when it closes above a line (let's call it purple line)
  • at the same time that between the purple line and the green line (another line) there are no other lines

I have already declared all the lines etc. but I don't understand how to write the program to make him open an order with these conditions ... I have no idea how to do it! thanks for the help

help.png