Author

Topic: pinescript bot trading and lot size (Read 27 times)

jr. member
Activity: 168
Merit: 7
December 08, 2023, 08:52:15 AM
#1
This a question more about pine script and maybe more applicable to forex trading but hoping someone maybe able to help

I am working on a new strategy using atr as a stop loss. However I only want to risk 1% per trade.
I am creating the code to calculate the pips between stop loss and entry and i have the formula to calculate the position size to take to risk 1% or whatever.

I want with this to create a strategy that will trade automatically via web hooks and capital ai - is this doable like will it work can I automate lot sizes in such a way or will it create errors or is there another way to do it
Jump to: