TradingView
adolgov
23. Dez. 2020 10:52

Stop loss and Take Profit in $$ example 

E-mini S&P 500 FuturesCME

Beschreibung

This is a simple exit example in $$ (symbol's currency) for educational purpose.
Kommentare
PineCoders
RohintonDaraChinoy
I would like to run this script on crypto can somebody point me to a tutorial that explains how.
venkatprofit
How to change this into No. of points to book profit. or No. of points as SL instead of %
meresheve
How to seperate (stop and profit) in the strategy.exit ??
Please Help me
Piticu
Ridiculous. simple for such a major use! I need to try it, glad that PineCoders started to pick useful codes in their Editors' Picks. Cheers
meresheve
Please Help Me
Good day, I got the above line from your work. I'm trying to edit it as above,
strategy.exit("Short", profit=p and barstate.isconfirmed, alert_message=message_short_exit)

but it gives an error like this, (Cannot call 'strategy.exit' with 'profit'=series[bool]. The argument should be of type: series[float] )
I can't pass it, can you help?
PineCoders
This publication is now featured in our Editors' Picks: tradingview.com/scripts/editors-picks/ .
In the name of all TradingView traders, thank you for your valuable contribution to the TradingView community, and congrats!
ARSAlgo
Wow, Thank you so much mate. I have been searching for this since a long time.
mtahreemalam
Its working perfectly when we use contracts as order size. But does not work when we use % equity.
Anything i should modify?
rvkiran
Thank you. looking for this for long time.
Mehr