Post
Topic
Board Trading Discussion
Topic OP
pinescript bot trading and lot size
by
forestx
on 08/12/2023, 12:52:15 UTC
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