OPEN-SOURCE SCRIPT
تم تحديثه XT Up/Down Bar Indicator

The XT Up/Down Bar Indicator is designed to show how alert messages are created using a simple indicator that Buys when the bar closes Up and Sells when the bar closes Down.
The alert message is already preloaded with a basic buy and sell command that also uses 'flatten_first' to close any existing position before opening a new one.
Example Alert Message:
```
key=Your CrossTrade Secret Key;
command=PLACE;
account=sim101;
instrument=ES 12-24;
action=BUY (or SELL);
qty=1;
order_type=MARKET;
tif=DAY;
flatten_first=true;
```
You'll need to add your secret key to the message between = and ;
Correct: key=123456789123456789;
Incorrect: key=Your CrossTrade Secret Key123456789123456789;
You'll also need to add your webhook URL to the Notifications tab on the alert.
Visual Signals: The indicator displays green "BUY" labels below bars when the price closes higher than the previous bar and red "SELL" labels above bars when the price closes lower. This provides traders with an immediate visual cue for potential entry and exit points.
If you need help: Here is a LINK to our TradingView alerts Help Doc.
Disclaimer: This indicator is designed and offered purely as an educational resource to showcase how to structure your alert messages. We do not suggest, advise, or recommend using this indicator in production with live capital.
The alert message is already preloaded with a basic buy and sell command that also uses 'flatten_first' to close any existing position before opening a new one.
Example Alert Message:
```
key=Your CrossTrade Secret Key;
command=PLACE;
account=sim101;
instrument=ES 12-24;
action=BUY (or SELL);
qty=1;
order_type=MARKET;
tif=DAY;
flatten_first=true;
```
You'll need to add your secret key to the message between = and ;
Correct: key=123456789123456789;
Incorrect: key=Your CrossTrade Secret Key123456789123456789;
You'll also need to add your webhook URL to the Notifications tab on the alert.
Visual Signals: The indicator displays green "BUY" labels below bars when the price closes higher than the previous bar and red "SELL" labels above bars when the price closes lower. This provides traders with an immediate visual cue for potential entry and exit points.
If you need help: Here is a LINK to our TradingView alerts Help Doc.
Disclaimer: This indicator is designed and offered purely as an educational resource to showcase how to structure your alert messages. We do not suggest, advise, or recommend using this indicator in production with live capital.
ملاحظات الأخبار
Fixed a bug with the alerts not firing properlyملاحظات الأخبار
Updated the placeholder to the front month ES contract "03-25" ملاحظات الأخبار
Swapped the NT8 instrument format for the Pine Script {{ticker}} variable now that CrossTrade supports continuous contracts and will automatically convert the ticker into NT8s format.نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.