ict_advanced | Cryptocurrency

Telegram-канал ict_advanced - ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

5097

کلیه محتوای این چنل رایگان است و رایگان باقی خواهد ماند .اشتراک هر سیگنال فقط جهت آموزش است .ورود به این چنل یعنی شما به استاپ لاس و مدیریت ریسک پایبند هستید .🛑 https://x.com/ICT_ADVANCED?t=6pj7NrzWBVhkPO8zqcsfIQ&s=09

Subscribe to a channel

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

های منهای لو میشه s(n)

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

دو نفر دیگه برن و بیان چنل رو پرایوت میکنم
خو بتمرگ

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

@ICT_ADVANCED

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

کص ننت تلگرام . با محدودیت پیامات
ریدم به پریمومت اولسو

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

2. Parameters:
- GenesisLookBackPeriod and CurrentLookBackPeriod define how many bars back to look for the genesis and current bars.
- GenesisLineColor and CurrentLineColor set the colors for the genesis and current lines.
- GenesisLineStyle and CurrentLineStyle set the styles for the genesis and current lines.

3. OnStart and OnTick Methods:
- OnStart is called when the robot starts.
- OnTick is called on each market tick.
- Both methods call UpdateData to update the lines and text on the chart.

4. UpdateData Method:
- Calculates the indices for the genesis and current bars.
- Ensures the indices are within valid ranges.
- Retrieves the OHLC (Open, High, Low, Close) and volume data for the genesis and current bars.
- Calculates the differences between the genesis and current bars.
- Calculates the time difference between the genesis and current bars.
- Draws the vertical and horizontal lines using the DrawVerticalLines and DrawHorizontalLines methods.

5. DisplayDataOnChart Method:
- Displays the data for the genesis and current bars, as well as the differences and time difference, on the chart.

6. DrawVerticalLines Method:
- Removes any existing vertical lines.
- Converts the enum values for color and style to the appropriate Color and LineStyle types.
- Draws new vertical lines for the genesis and current bars.

7. DrawHorizontalLines Method:
- Removes any existing horizontal lines.
- Converts the enum values for color and style to the appropriate Color and LineStyle types.
- Draws new horizontal lines at the midpoints of the genesis and current bars.

8. FormatTimeSpan Method:
- Formats the TimeSpan object into a readable string showing the difference in years, months, days, hours, minutes, and seconds.

9. ConvertLineColor and ConvertLineStyle Methods:
- Convert the enum values to the corresponding Color and LineStyle types used by the cAlgo API.

This setup allows you to easily configure and visualize the data for specific bars on your chart, providing a clear and configurable way to analyze market data.

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

شاشو نرین تو کد که دهنم باز میشه ها

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

Storage Limitations: Minute-resolution data consumes a lot of storage space, so platforms might limit the amount they store.

Broker Policies: Different brokers have different data retention policies for minute-resolution data.

Chart Settings: Ensure that your chart settings and platform settings allow for the maximum data retention and loading.

If you need more historical minute-resolution data, consider the following options:

Data Providers: Look for third-party data providers who offer extensive historical data.

Broker Settings: Check with your broker to see if they provide options to access more historical data.

Aggregation: Use a higher time frame that aggregates minute data, such as hourly or daily, if your analysis allows.

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

این کد یک ربات معاملاتی به نام "SQ" را در پلتفرم cTrader تعریف می‌کند. این ربات از زبان برنامه‌نویسی سی‌شارپ (C#) استفاده می‌کند و از کتابخانه‌های مخصوص cTrader API بهره می‌برد. در اینجا توضیح کاملی از کد به زبان فارسی آورده شده است:

using System;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.API.Collections;

namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.None, AddIndicators = true)]
public class SQ : Robot
{
[Parameter("Bar Look Back Index", DefaultValue = 0, MinValue = 0)]
public int BarBarIndex { get; set; }

protected override void OnStart()
{
// تعریف شاخص‌های لازم برای بارها
int lastBarIndex = Bars.Count - 2; // شاخص دومین بار آخر روی نمودار

// اگر BarBarIndex بیشتر از تعداد بارها باشد، آن را به تعداد بارها تنظیم کنید
if (BarBarIndex > lastBarIndex)
{
BarBarIndex = lastBarIndex;
}

int genesisBarIndex = BarBarIndex;

// بازیابی OHLC و حجم تیک نوار Genesis
double open = Bars.OpenPrices[genesisBarIndex];
double high = Bars.HighPrices[genesisBarIndex];
double low = Bars.LowPrices[genesisBarIndex];
double close = Bars.ClosePrices[genesisBarIndex];
long tickVolume = (long)Bars.TickVolumes[genesisBarIndex]; // تبدیل به long

// بازیابی زمان نوار Genesis و بار فعلی
DateTime genesisBarTime = Bars.OpenTimes[genesisBarIndex];
DateTime currentBarTime = Bars.OpenTimes[lastBarIndex];

// بازیابی OHLC بار فعلی
double currentOpen = Bars.OpenPrices[lastBarIndex];
double currentHigh = Bars.HighPrices[lastBarIndex];
double currentLow = Bars.LowPrices[lastBarIndex];
double currentClose = Bars.ClosePrices[lastBarIndex];

// محاسبه تفاوت‌ها
double dfo = currentOpen - open; // تفاوت برای Open
double dfc = currentClose - close; // تفاوت برای Close
double dfh = currentHigh - high; // تفاوت برای High
double dfl = currentLow - low; // تفاوت برای Low

// نمایش داده‌ها روی نمودار به صورت متن
DisplayDataOnChart(open, high, low, close, tickVolume, genesisBarTime, currentBarTime, dfo, dfc, dfh, dfl);
}

private void DisplayDataOnChart(double open, double high, double low, double close, long tickVolume, DateTime genesisBarTime, DateTime currentBarTime, double dfo, double dfc, double dfh, double dfl)
{
string text = $"Open: {open}\nHigh: {high}\nLow: {low}\nClose: {close}\nTick Volume: {tickVolume}\nGenesis Bar Time: {genesisBarTime}\nCurrent Bar Time: {currentBarTime}\n\nDifferences:\nDFO (Open): {dfo}\nDFC (Close): {dfc}\nDFH (High): {dfh}\nDFL (Low): {dfl}";

// استفاده از Chart.DrawStaticText به جای Chart.DrawText
Chart.DrawStaticText("dataLabel", text, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White);
}
}
}


توضیحات کد:

1. تعریف ربات:
- کد با استفاده از فضای نام‌های ضروری و کتابخانه‌های cTrader API شروع می‌شود.
- یک کلاس به نام "SQ" تعریف شده که از کلاس پایه Robot ارث‌بری می‌کند.

2. پارامترها:
- یک پارامتر ورودی به نام "Bar Look Back Index" تعریف شده که به کاربر اجازه می‌دهد شاخص نوار مورد نظر را تنظیم کند.

3. روش `OnStart`:
- این روش زمانی که ربات شروع به کار می‌کند اجرا می‌شود.
- شاخص دومین بار آخر روی نمودار تعیین می‌شود.
- اگر شاخص وارد شده توسط کاربر بزرگتر از تعداد بارها باشد، به تعداد بارها تنظیم می‌شود.
- شاخص نوار Genesis تعیین می‌شود.
- قیمت‌های باز، بالا، پایین، بسته و حجم تیک نوار Genesis بازیابی می‌شود.
- زمان نوار Genesis و زمان بار فعلی بازیابی می‌شود.
- قیمت‌های باز، بالا، پایین و بسته بار فعلی بازیابی می‌شود.
- تفاوت‌های بین قیمت‌های نوار Genesis و بار فعلی محاسبه می‌شود.
- داده‌ها به صورت متن روی نمودار نمایش داده می‌شوند.

4. روش `DisplayDataOnChart`:
- متن داده‌های بازیابی شده را آماده می‌کند.
- متن را در موقعیت مشخصی روی نمودار نمایش می‌دهد.

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

باقیش بعدا دیگه الان کار دارم

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

5. روش `FormatTimeSpan`:
- اختلاف زمان محاسبه شده را به فرمت خوانا تبدیل می‌کند که شامل سال‌ها، ماه‌ها، روزها، ساعت‌ها، دقیقه‌ها و ثانیه‌ها است.

این کد به کاربران اجازه می‌دهد داده‌های نوار مشخص شده، زمان‌های مربوطه و اختلاف زمانی بین نوار Genesis و بار فعلی را روی نمودار خود مشاهده کنند.

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

خب بریم یه پلتفرم هوا کنیم کی به کیه
همش هم اماده دارم . فقط یه فید مبخوایم

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

اینم مث این اخوندای جاکشه . شاشو بزار دو دیقه بگذره بعد برو سمت باد

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

خو چیطوری حالا اسکیلش کنیم

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

خو سل بزن
مرض دارم کانترم خیلی وخته

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

شاشو من اینجا مارکت میزنم سر خیابون میخره

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

حالا باید تخسیم بندیش کنیم

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

رنج رو در فرکتال ۴۵ دقیقه بزارید ۸۶

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

واسا تکست بزارم . وسط یه مشت پلتفرم جاکش گرفتاریم

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

private void DisplayDataOnChart(double genesisOpen, double genesisHigh, double genesisLow, double genesisClose, long genesisTickVolume, DateTime genesisBarTime, DateTime userBarTime, double dfo, double dfc, double dfh, double dfl, TimeSpan timeDifference)
{
string text = $"Genesis Bar:\nOpen: {genesisOpen}\nHigh: {genesisHigh}\nLow: {genesisLow}\nClose: {genesisClose}\nTick Volume: {genesisTickVolume}\nTime: {genesisBarTime}\n\nUser-Selected Bar:\nTime: {userBarTime}\n\nDifferences:\nDFO (Open): {dfo}\nDFC (Close): {dfc}\nDFH (High): {dfh}\nDFL (Low): {dfl}\n\nTime Difference: {FormatTimeSpan(timeDifference)}";
Chart.DrawStaticText("dataLabel", text, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White);
}

private void DrawVerticalLines(int genesisBarIndex, int userBarIndex)
{
if (_genesisLine != null) Chart.RemoveObject(_genesisLine.Name);
if (_currentLine != null) Chart.RemoveObject(_currentLine.Name);

Color genesisColor = ConvertLineColor(GenesisLineColor);
Color currentColor = ConvertLineColor(CurrentLineColor);

LineStyle genesisStyle = ConvertLineStyle(GenesisLineStyle);
LineStyle currentStyle = ConvertLineStyle(CurrentLineStyle);

_genesisLine = Chart.DrawVerticalLine("genesisLine", Bars.OpenTimes[genesisBarIndex], genesisColor, 1, genesisStyle);
_currentLine = Chart.DrawVerticalLine("userLine", Bars.OpenTimes[userBarIndex], currentColor, 1, currentStyle);
}

private void DrawHorizontalLines(double genesisMidpoint, double userMidpoint)
{
if (_genesisMidline != null) Chart.RemoveObject(_genesisMidline.Name);
if (_userMidline != null) Chart.RemoveObject(_userMidline.Name);

Color genesisColor = ConvertLineColor(GenesisLineColor);
Color currentColor = ConvertLineColor(CurrentLineColor);

LineStyle genesisStyle = ConvertLineStyle(GenesisLineStyle);
LineStyle currentStyle = ConvertLineStyle(CurrentLineStyle);

_genesisMidline = Chart.DrawHorizontalLine("genesisMidline", genesisMidpoint, genesisColor, 1, genesisStyle);
_userMidline = Chart.DrawHorizontalLine("userMidline", userMidpoint, currentColor, 1, currentStyle);
}

private string FormatTimeSpan(TimeSpan timeSpan)
{
int years = (int)(timeSpan.Days / 365.25);
int months = (int)((timeSpan.Days % 365.25) / 30.44);
int days = timeSpan.Days % 30;
int hours = timeSpan.Hours;
int minutes = timeSpan.Minutes;
int seconds = timeSpan.Seconds;

return $"{years} years, {months} months, {days} days, {hours} hours, {minutes} minutes, {seconds} seconds";
}

private Color ConvertLineColor(MyLineColor lineColor)
{
return lineColor switch
{
MyLineColor.Red => Color.Red,
MyLineColor.Blue => Color.Blue,
MyLineColor.Green => Color.Green,
MyLineColor.Yellow => Color.Yellow,
MyLineColor.Black => Color.Black,
MyLineColor.White => Color.White,
_ => Color.Black,
};
}

private LineStyle ConvertLineStyle(MyLineStyle lineStyle)
{
return lineStyle switch
{
MyLineStyle.Solid => LineStyle.Solid,
MyLineStyle.Dots => LineStyle.Dots,
MyLineStyle.DotsRare => LineStyle.DotsRare,
MyLineStyle.DotsVeryRare => LineStyle.DotsVeryRare,
MyLineStyle.Lines => LineStyle.Lines,
MyLineStyle.LinesDots => LineStyle.LinesDots,
_ => LineStyle.Solid,
};
}
}
}

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️



private void DisplayDataOnChart(double genesisOpen, double genesisHigh, double genesisLow, double genesisClose, long genesisTickVolume, DateTime genesisBarTime, DateTime userBarTime, double dfo, double dfc, double dfh, double dfl, TimeSpan timeDifference)
{
string text = $"Genesis Bar:\nOpen: {genesisOpen}\nHigh: {genesisHigh}\nLow: {genesisLow}\nClose: {genesisClose}\nTick Volume: {genesisTickVolume}\nTime: {genesisBarTime}\n\nUser-Selected Bar:\nTime: {userBarTime}\n\nDifferences:\nDFO (Open): {dfo}\nDFC (Close): {dfc}\nDFH (High): {dfh}\nDFL (Low): {dfl}\n\nTime Difference: {FormatTimeSpan(timeDifference)}";
Chart.DrawStaticText("dataLabel", text, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White);
}

private void DrawVerticalLines(int genesisBarIndex, int userBarIndex)
{
if (_genesisLine != null) Chart.RemoveObject(_genesisLine.Name);
if (_currentLine != null) Chart.RemoveObject(_currentLine.Name);

Color genesisColor = ConvertLineColor(GenesisLineColor);
Color currentColor = ConvertLineColor(CurrentLineColor);

LineStyle genesisStyle = ConvertLineStyle(GenesisLineStyle);
LineStyle currentStyle = ConvertLineStyle(CurrentLineStyle);

_genesisLine = Chart.DrawVerticalLine("genesisLine", Bars.OpenTimes[genesisBarIndex], genesisColor, 1, genesisStyle);
_currentLine = Chart.DrawVerticalLine("userLine", Bars.OpenTimes[userBarIndex], currentColor, 1, currentStyle);
}

private void DrawHorizontalLines(double genesisMidpoint, double userMidpoint)
{
if (_genesisMidline != null) Chart.RemoveObject(_genesisMidline.Name);
if (_userMidline != null) Chart.RemoveObject(_userMidline.Name);

Color genesisColor = ConvertLineColor(GenesisLineColor);
Color currentColor = ConvertLineColor(CurrentLineColor);

LineStyle genesisStyle = ConvertLineStyle(GenesisLineStyle);
LineStyle currentStyle = ConvertLineStyle(CurrentLineStyle);

_genesisMidline = Chart.DrawHorizontalLine("genesisMidline", genesisMidpoint, genesisColor, 1, genesisStyle);
_userMidline = Chart.DrawHorizontalLine("userMidline", userMidpoint, currentColor, 1, currentStyle);
}

private string FormatTimeSpan(TimeSpan timeSpan)
{
int years = (int)(timeSpan.Days / 365.25);
int months = (int)((timeSpan.Days % 365.25) / 30.44);
int days = timeSpan.Days % 30;
int hours = timeSpan.Hours;
int minutes = timeSpan.Minutes;
int seconds = timeSpan.Seconds;

return $"{years} years, {months} months, {days} days, {hours} hours, {minutes} minutes, {seconds} seconds";
}

private Color ConvertLineColor(MyLineColor lineColor)
{
return lineColor switch
{
MyLineColor.Red => Color.Red,
MyLineColor.Blue => Color.Blue,
MyLineColor.Green => Color.Green,
MyLineColor.Yellow => Color.Yellow,
MyLineColor.Black => Color.Black,
MyLineColor.White => Color.White,
_ => Color.Black,
};
}

private LineStyle ConvertLineStyle(MyLineStyle lineStyle)
{
return lineStyle switch
{
MyLineStyle.Solid => LineStyle.Solid,
MyLineStyle.Dots => LineStyle.Dots,
MyLineStyle.DotsRare => LineStyle.DotsRare,
MyLineStyle.DotsVeryRare => LineStyle.DotsVeryRare,
MyLineStyle.Lines => LineStyle.Lines,
MyLineStyle.LinesDots => LineStyle.LinesDots,
_ => LineStyle.Solid,
};
}
}
}


### Explanation

1. Enums for Colors and Styles:
- MyLineColor and MyLineStyle enums define the available colors and line styles for the lines drawn on the chart.

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

باس دس کنی تو جیبت دیگه کاری از کسی بر نمیاد

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

پشتیبانی نداره
سوال جواب نمیدن
تجربیات سالیانه نداره
ها
ایطوریه

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

امده ام که بروند
همشون
حالو باور نکن

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

خب حالو میخیم بریم با گام های ایندکس در زمان حرکت کنیم ولی
قبلش میخیم بریم همه ی دیفرنتال دیتا ها رو بگیریم

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

این کد یک ربات معاملاتی به نام "SQ" را در پلتفرم cTrader تعریف می‌کند. این ربات از زبان برنامه‌نویسی سی‌شارپ (C#) استفاده می‌کند و از کتابخانه‌های مخصوص cTrader API بهره می‌برد. در اینجا توضیح کاملی از کد به زبان فارسی آورده شده است:

using System;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.API.Collections;

namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.None, AddIndicators = true)]
public class SQ : Robot
{
[Parameter("Bar Look Back Index", DefaultValue = 0, MinValue = 0)]
public int BarBarIndex { get; set; }

protected override void OnStart()
{
// تعریف شاخص‌های لازم برای بارها
int lastBarIndex = Bars.Count - 2; // شاخص دومین بار آخر روی نمودار

// اگر BarBarIndex بیشتر از تعداد بارها باشد، آن را به تعداد بارها تنظیم کنید
if (BarBarIndex > lastBarIndex)
{
BarBarIndex = lastBarIndex;
}

int genesisBarIndex = BarBarIndex;

// بازیابی OHLC و حجم تیک نوار Genesis
double open = Bars.OpenPrices[genesisBarIndex];
double high = Bars.HighPrices[genesisBarIndex];
double low = Bars.LowPrices[genesisBarIndex];
double close = Bars.ClosePrices[genesisBarIndex];
long tickVolume = (long)Bars.TickVolumes[genesisBarIndex]; // تبدیل به long

// بازیابی زمان نوار Genesis و بار فعلی
DateTime genesisBarTime = Bars.OpenTimes[genesisBarIndex];
DateTime currentBarTime = Bars.OpenTimes[lastBarIndex];

// محاسبه اختلاف زمان بین زمان نوار Genesis و زمان بار فعلی
TimeSpan timeDifference = currentBarTime - genesisBarTime;

// نمایش داده‌ها روی نمودار به صورت متن
DisplayDataOnChart(open, high, low, close, tickVolume, genesisBarTime, currentBarTime, timeDifference);
}

private void DisplayDataOnChart(double open, double high, double low, double close, long tickVolume, DateTime genesisBarTime, DateTime currentBarTime, TimeSpan timeDifference)
{
string text = $"Open: {open}\nHigh: {high}\nLow: {low}\nClose: {close}\nTick Volume: {tickVolume}\nGenesis Bar Time: {genesisBarTime}\nCurrent Bar Time: {currentBarTime}\nTime Difference: {FormatTimeSpan(timeDifference)}";

// استفاده از Chart.DrawStaticText به جای Chart.DrawText
Chart.DrawStaticText("dataLabel", text, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White);
}

private string FormatTimeSpan(TimeSpan timeSpan)
{
int years = (int)(timeSpan.Days / 365.25);
int months = (int)((timeSpan.Days % 365.25) / 30.44);
int days = timeSpan.Days % 30;
int hours = timeSpan.Hours;
int minutes = timeSpan.Minutes;
int seconds = timeSpan.Seconds;

return $"{years} years, {months} months, {days} days, {hours} hours, {minutes} minutes, {seconds} seconds";
}
}
}


توضیحات کد:

1. تعریف ربات:
- کد با استفاده از فضای نام‌های ضروری و کتابخانه‌های cTrader API شروع می‌شود.
- یک کلاس به نام "SQ" تعریف شده که از کلاس پایه Robot ارث‌بری می‌کند.

2. پارامترها:
- یک پارامتر ورودی به نام "Bar Look Back Index" تعریف شده که به کاربر اجازه می‌دهد شاخص نوار مورد نظر را تنظیم کند.

3. روش `OnStart`:
- این روش زمانی که ربات شروع به کار می‌کند اجرا می‌شود.
- شاخص دومین بار آخر روی نمودار تعیین می‌شود.
- اگر شاخص وارد شده توسط کاربر بزرگتر از تعداد بارها باشد، به تعداد بارها تنظیم می‌شود.
- شاخص نوار Genesis تعیین می‌شود.
- قیمت‌های باز، بالا، پایین، بسته و حجم تیک نوار Genesis بازیابی می‌شود.
- زمان نوار Genesis و زمان بار فعلی بازیابی می‌شود.
- اختلاف زمان بین زمان نوار Genesis و زمان بار فعلی محاسبه می‌شود.
- داده‌ها به صورت متن روی نمودار نمایش داده می‌شوند.

4. روش `DisplayDataOnChart`:
- متن داده‌های بازیابی شده را آماده می‌کند.
- متن را در موقعیت مشخصی روی نمودار نمایش می‌دهد.

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

الان گفتی بدرد نمیخوره .
از اون لحجه انگلسیت مشخصه چه پلشتی پروگرامت کرده

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

islamic republic in ai

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

من با اون پلشت کار دارم نه با پول

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

نه اینا بانسه . مو کانتروم

Читать полностью…

ICT𝘼𝘿𝙑𝘼𝙉𝘾𝙀𝘿️(𝐙𝐞𝐭𝐚 𝐜𝐢𝐫𝐜𝐥𝐞 𝐢𝐧𝐧𝐞𝐫 𝐜𝐢𝐫𝐜𝐥𝐞 𝐯𝐢𝐩𝐞𝐫️)™️

دیگه وقتی انجین وایپر ایندکس رو بکنه تایم و برعکس تریدینگ ویو با فتوشاب فرقی ندارن

Читать полностью…
Subscribe to a channel