theCrypster

Fixed Percent Stop Loss & Take Profit % - For Study Scripts

===========
Fixed Percent Stop Loss & Take Profit % - { FOR STUDY SCRIPTS! }
===========

A neat example of how to set up Fixed Stops and Take Profit as a percent of the entry price - This is for setting Alerts within your own Study Script for when either your SL or TP get hit.
Yup, that's about it!

You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT profitable and NOT recommended!

You should be using this code as a way of adding Stops and Takes to your own scripts - hope it helps!

Set your "Open Long/Short" Alerts to be triggered "Once per Bar Close" - Set your "SL/TP" Alerts to trigger "Once per Bar".

--

We wrote this with a bit of a rush on! ~ If you spot any mistakes/bugs just let us know and we'll get round to them asap!

-----------

Good Luck and Happy Trading!
إزالة من البرامج النصية المفضلة أضف إلى البرامج النصية المفضلة
==============
https://www.theCrypster.com
-----------
> Full Access on our website. 7-Day Free Trial. Crypto Tipster & Crypto Scalper Strategies. Stunning Past Performance
-----------
https://twitter.com/TCrypster
==============

التعليقات

As usual u r the best excellent work..keep it up..
+2 رد
@Pollard, Thanks! That means a lot! We've been working hard recently trying to improve our products and services, including writing this code! Thought it was too valuable for fellow Pine coders to keep under lock and key!
رد
Hi mate thanks for this! Do you also have an example for multiple take profit levels? e.g. 3 levels. Thanks!
+1 رد
The script does not set the values correctly. With a tp of 2.5%, we actually have 2.44%. And these values are floating.
رد
Hello, I want to compliment you on a very good script for alerts. I used this strategy of yours with minor modifications. But unfortunately in one very ugly way I discovered one big flaw in the script. Namely, on August 2, 2020, btc had a correction of approximately 17% in 2 minutes. I had a strategy on the 15 min chart. The basis was cross ema 7 / sma 2, when btc dropped so fast, there was an instant cross 7/21 and it automatically opened the signal for short and canceled the stop loss to long although short was not actually confirmed yet because it was not close. So I was immediately liquidated. What I tried was to put offset 1 for the signal, in fact that's how it should print the signal, not on the current candle, but after the confirmed cross after the close candle, on the close / open candle. In fact, your strategy repaint. If you could correct this mistake, I would be grateful.
رد
cryptodestroyer cryptodestroyer
@cryptodestroyer, Although I put offset 1, the script is not behaving as it should, so this is beyond my knowledge.
رد
cryptodestroyer cryptodestroyer
@cryptodestroyer, Stop loss should be the mechanism that defends me, meaning if the cross is confirmed with the next open above the cross long is open, and the stop loss is set and they stand there until it is touched, then kick me out of the trade or until the next confirmed cross below. I hope you understand.
رد
Definitely use this in the toolbox. Thanks for making this .
رد
how do i make a code where i just do for example

take short position at time 1500 take profit 30 pips stoploss 15 pips? because everywhere on the internet the only thing i can find is if that is that and if that is that. and if that level is that.
the only thing i want to code is

take short or long postion at time X with a take profit of 20 and stoploss 10 for example. everytime it passes that time.
and the strategy should be running between sunday markets open and friday markets closes.
رد
HI, amazing script , is it possible to add mtf sir?
رد
الصفحة الرئيسية منصة الأسهم منصًة العملات منصّة العملات الرقمية جدول الأعمال الاقتصادي كيف تعمل مميزات الرسم البياني أسعار العضوية إحالة صديق قوانين الموقع مركز المساعدة حلول المواقع الإلكترونية والوسطاء الأدوات حلول الرسوم البيانية مكتبة الرسوم البيانية صغيرة الحجم المدوّنة والأخبار تويتر
ملف التعريف إعدادات الصفحة الشخصية الحساب وإعداد الفواتير الأصدقاء المُحالون العملات الافتراضية تذاكر الدعم الخاصة بي مركز المساعدة التحاليل المنشورة المتابعين تُتابع رسالة خاصة المحادثة تسجيل الخروج