OPEN-SOURCE SCRIPT
تم تحديثه Stoploss and Target Suggestions

This indicator puts a line at the Target level and the Stop Loss level set by the user. The lines change position real time as the current bar develops.
In the inputs you can set the number of percents or ATR's, choose if these must be calculated from close of from hl2. You can also set the color of this line.
To the right of the line is the suggested level.
To the left is a label which states how the calculation is done and between brackets what the gain or risk is.
gain and risk are always calculated from close as a percent.
Default settings are: both levels are shown, calculated as 1 ATR from hl2.
Default color for Target is green and Stop Loss is red.
Use of the indicator.
You can use it in a trading system in which targets and stops are set as a percent or an amount of ATR's and be aware of risk and potential gain.
In the inputs you can set the number of percents or ATR's, choose if these must be calculated from close of from hl2. You can also set the color of this line.
To the right of the line is the suggested level.
To the left is a label which states how the calculation is done and between brackets what the gain or risk is.
gain and risk are always calculated from close as a percent.
Default settings are: both levels are shown, calculated as 1 ATR from hl2.
Default color for Target is green and Stop Loss is red.
Use of the indicator.
You can use it in a trading system in which targets and stops are set as a percent or an amount of ATR's and be aware of risk and potential gain.
ملاحظات الأخبار
The labels are sometimes hard to read due to the high transparency of the white color. To fix this I added a third color input of less transparent white, which you can now adept to your liking.Eykpunter
ملاحظات الأخبار
Update accompanied by a littered chart. Sorry for the mistake.ملاحظات الأخبار
I put in more possibilities for setting up the colors target and stop get seperate settings in the inputs. Also created a background color which flips when the suggested target or stop is higher than the previous suggestion. More color fun. Default setting are now:
Stop and Target both activated at 1 atr from hl2
Target text and line green, background white, background of value when higher lime
Stop text and line red, background white, background of value when higher aqua
ملاحظات الأخبار
Put the indicator on top of the chart in the indicator() instruction and corrected the default white background of the target to a opaque settingنص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.