کلیه محتوای این چنل رایگان است و رایگان باقی خواهد ماند .اشتراک هر سیگنال فقط جهت آموزش است .ورود به این چنل یعنی شما به استاپ لاس و مدیریت ریسک پایبند هستید .🛑 https://x.com/ICT_ADVANCED?t=6pj7NrzWBVhkPO8zqcsfIQ&s=09
های منهای لو میشه s(n)
Читать полностью…دو نفر دیگه برن و بیان چنل رو پرایوت میکنم
خو بتمرگ
کص ننت تلگرام . با محدودیت پیامات
ریدم به پریمومت اولسو
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.
شاشو نرین تو کد که دهنم باز میشه ها
Читать полностью…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.
این کد یک ربات معاملاتی به نام "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);
}
}
}
Robot
ارثبری میکند.باقیش بعدا دیگه الان کار دارم
Читать полностью…5. روش `FormatTimeSpan`:
- اختلاف زمان محاسبه شده را به فرمت خوانا تبدیل میکند که شامل سالها، ماهها، روزها، ساعتها، دقیقهها و ثانیهها است.
این کد به کاربران اجازه میدهد دادههای نوار مشخص شده، زمانهای مربوطه و اختلاف زمانی بین نوار Genesis و بار فعلی را روی نمودار خود مشاهده کنند.
خب بریم یه پلتفرم هوا کنیم کی به کیه
همش هم اماده دارم . فقط یه فید مبخوایم
اینم مث این اخوندای جاکشه . شاشو بزار دو دیقه بگذره بعد برو سمت باد
Читать полностью…خو چیطوری حالا اسکیلش کنیم
Читать полностью…خو سل بزن
مرض دارم کانترم خیلی وخته
شاشو من اینجا مارکت میزنم سر خیابون میخره
Читать полностью…حالا باید تخسیم بندیش کنیم
Читать полностью…رنج رو در فرکتال ۴۵ دقیقه بزارید ۸۶
Читать полностью…واسا تکست بزارم . وسط یه مشت پلتفرم جاکش گرفتاریم
Читать полностью…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,
};
}
}
}
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,
};
}
}
}
MyLineColor
and MyLineStyle
enums define the available colors and line styles for the lines drawn on the chart.
Читать полностью…
باس دس کنی تو جیبت دیگه کاری از کسی بر نمیاد
Читать полностью…پشتیبانی نداره
سوال جواب نمیدن
تجربیات سالیانه نداره
ها
ایطوریه
امده ام که بروند
همشون
حالو باور نکن
خب حالو میخیم بریم با گام های ایندکس در زمان حرکت کنیم ولی
قبلش میخیم بریم همه ی دیفرنتال دیتا ها رو بگیریم
این کد یک ربات معاملاتی به نام "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";
}
}
}
Robot
ارثبری میکند.الان گفتی بدرد نمیخوره .
از اون لحجه انگلسیت مشخصه چه پلشتی پروگرامت کرده
islamic republic in ai
Читать полностью…من با اون پلشت کار دارم نه با پول
Читать полностью…نه اینا بانسه . مو کانتروم
Читать полностью…دیگه وقتی انجین وایپر ایندکس رو بکنه تایم و برعکس تریدینگ ویو با فتوشاب فرقی ندارن
Читать полностью…