I am just getting to grips with PineScript and more specifically writing strategies to place orders/trades however, have a quick question.
I want to create a basic template strategy that will enter a trade, set its stop loss and take profit, and that's all to begin with. I am not interested in using any indicators to set any of these values as yet, so I just wish to simply set:
- Entry price = current price + 10pips
- Stop loss = entry_price - 20pips
- Take profit = entry_price + 60pips
I appreciate this isn't a useful strategy to trade with, I am just using this exercise to better understand PineScript and once I have a script that can execute the above I plan to then build on that, so this will be a huge help!
Thanks all