کلیه محتوای این چنل رایگان است و رایگان باقی خواهد ماند .اشتراک هر سیگنال فقط جهت آموزش است .ورود به این چنل یعنی شما به استاپ لاس و مدیریت ریسک پایبند هستید .🛑 https://x.com/ICT_ADVANCED?t=6pj7NrzWBVhkPO8zqcsfIQ&s=09
جی پی تی کوجویی باو
وخی تا کدش کنیم
It looks like you want to integrate the provided code examples into a .NET 6.0 project for cTrader, specifically for drawing ellipses on the chart as part of an indicator. Below is an example of how to structure your project and include the cTrader algo code.
### Project File (.csproj
)
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDefaultItems>False</EnableDefaultItems>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup>
<LangVersion>7.2</LangVersion>
<Configuration Condition="'$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition="'$(Platform)' == '' ">AnyCPU</Platform>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>cAlgo</RootNamespace>
<AssemblyName>ChartEllipseSample</AssemblyName>
<FileAlignment>512</FileAlignment>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="cTrader.Automate" Version="*-*" />
</ItemGroup>
<ItemGroup>
<Compile Include="ChartEllipseSample.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
</Project>
ChartEllipseSample.cs
)// -------------------------------------------------------------------------------------------------
// This code is a cTrader Algo API example.
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
// profit of any kind. Use it at your own risk.
// -------------------------------------------------------------------------------------------------
using cAlgo.API;
namespace cAlgo
{
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class ChartEllipseSample : Indicator
{
protected override void Initialize()
{
Draw();
}
public override void Calculate(int index)
{
Draw();
}
private void Draw()
{
var y1 = Bars.HighPrices[Chart.FirstVisibleBarIndex] > Bars.HighPrices[Chart.LastVisibleBarIndex] ? Bars.HighPrices[Chart.FirstVisibleBarIndex] : Bars.HighPrices[Chart.LastVisibleBarIndex];
var y2 = Bars.LowPrices[Chart.FirstVisibleBarIndex] < Bars.LowPrices[Chart.LastVisibleBarIndex] ? Bars.LowPrices[Chart.FirstVisibleBarIndex] : Bars.LowPrices[Chart.LastVisibleBarIndex];
var ellipse = Chart.DrawEllipse("ellipse", Chart.FirstVisibleBarIndex, y1, Chart.LastVisibleBarIndex, y2, Color.FromArgb(50, Color.Red.R, Color.Red.G, Color.Red.B));
ellipse.IsFilled = true;
}
}
}
Properties\AssemblyInfo.cs
)using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("ChartEllipseSample")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ChartEllipseSample")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("d9b8f5b3-0a3d-4c6d-8b7e-3c4fe4c8d2a9")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
cTrader.Automate
package.Draw
method determines the highest and lowest visible bar prices and draws an ellipse between them..csproj
, ChartEllipseSample.cs
, AssemblyInfo.cs
) within the appropriate directories.
Читать полностью…
در تعریفی که مایکل از بلنس پرایس رنج ها دارد . 🧐
یکم صبر کنیم
ها بعد منیپیولیشن
چرا
چون قمار باز نیستم
ریاضی میگه ببند . مام معذور
نازی . خوش به حالشون بوخودا
Читать полностью…پلشتا . فک کردن همه مثل خودشون خنگن
Читать полностью…چند نفر متخصص توی دولت دارن !؟
خاک بر سر نفهمشون
بوزینه کانکشن بورس تهران رو با بازار
بین اللملی قطع کن . دلار درست میشه
احمقا
الگوریتم خارشون رو گاییده . خبر ندارد 🧐
بجای این کیر فیس تو تلویزیون اینترنت رو درست کنید پلشتا . ریدم وسط عمامتون
Читать полностью…تابع تعریف کردیم . بعد ایف استیتمنت نوشته . حالا اگه این انگاه تابع خودش باشه اگه نه . مودیفای اون باشه
پشمام . گراز اون پروسسه . پشمام
بیو برو باو این پیر مرد سی شارپ یه شدوینگ نمیشه هندل کرد باش . زبون بسته.
یکی از یکی گه ترن البته
مرحوم یونیکس و دیگر هیچ
حالا چرا دات نت . اصلا تکنولوژی دات نت چیه . همین جوری قشنگه دات نت
Читать полностью…پیر شدی وایپر
زمان ما ورژنا فرق داشت
در اینجا توضیحی به زبان فارسی برای کد Pine Script بالا ا، آمده است. این توضیح شامل شرح هر قسمت از کد و عملکرد آن برای کاربران است.
### شرح کد Pine Script:
1. تعریف شاخص (Indicator):
indicator('Candlestick Shadows with Table and Time Frame Enum', overlay = true, dynamic_requests = true)
overlay=true
به این معناست که نمودار در بالای چارت اصلی ترسیم خواهد شد و dynamic_requests=true
اجازه میدهد که درخواستها برای دریافت دادههای زمانی (timeframe) بهصورت پویا انجام شود.enum TimeFrames
tf_3min = '3'
tf_5min = '5'
tf_15min = '15'
tf_45min = '45'
tf_30min = '30'
tf_1hour = '60'
tf_2hour = '120'
tf_3hour = '180'
tf_1day = 'D'
tf_1week = 'W'
tf_1month = 'M'
tf_1year = 'y'
enum
به نام TimeFrames
برای تعریف تایمفریمهای مختلف ایجاد شده است. این تایمفریمها شامل مقادیر مختلف از ۳ دقیقه تا ۱ سال میباشند.selectedTF = input.enum(TimeFrames.tf_15min, 'Select Higher Time Frame')
selectedTF
ایجاد میکند که به کاربر امکان میدهد تا تایمفریم بالاتر را از بین گزینههای تعریفشده در enum
انتخاب کند. بهطور پیشفرض، تایمفریم ۱۵ دقیقه انتخاب شده است.LOOK_BACK = input.int(0, title = '[LOOK_BACK]', confirm = false, minval=0, maxval=499)
OPEN_HTF = request.security(syminfo.tickerid, str.tostring(selectedTF), open[LOOK_BACK])
HIGH_HTF = request.security(syminfo.tickerid, str.tostring(selectedTF), high[LOOK_BACK])
LOW_HTF = request.security(syminfo.tickerid, str.tostring(selectedTF), low[LOOK_BACK])
CLOSE_HTF = request.security(syminfo.tickerid, str.tostring(selectedTF), close[LOOK_BACK])
F_CALCULATESHADOWS() =>
// Declare variables for all calculated values
var float UPPER_SHADOW = 0.0000
var float LOWER_SHADOW = 0.0000
var float BODY_RANGE = 0.0000
var float MEAN_THRESHOLD = 0.0000
var float MID_RANGE = 0.0000
var float UPPER_CE = 0.0000
var float LOWER_CE = 0.0000
// Access values using the higher time frame (HTF)
UPPER_SHADOW := HIGH_HTF - math.max(OPEN_HTF, CLOSE_HTF)
LOWER_SHADOW := math.min(OPEN_HTF, CLOSE_HTF) - LOW_HTF
BODY_RANGE := math.max(OPEN_HTF, CLOSE_HTF) - math.min(OPEN_HTF, CLOSE_HTF)
MEAN_THRESHOLD := (OPEN_HTF + CLOSE_HTF) / 2
MID_RANGE := (HIGH_HTF + LOW_HTF) / 2
// Calculate Upper_CE and Lower_CE as midpoints of the shadows
UPPER_CE := (HIGH_HTF + math.max(OPEN_HTF, CLOSE_HTF)) / 2
LOWER_CE := (LOW_HTF + math.min(OPEN_HTF, CLOSE_HTF)) / 2
// Return all the calculated values as a tuple
[UPPER_SHADOW, LOWER_SHADOW, BODY_RANGE, MEAN_THRESHOLD, MID_RANGE, UPPER_CE, LOWER_CE]
F_CALCULATESHADOWS
) برای محاسبه سایههای بالایی و پایینی کندلها، اندازه بدنه کندل، میانگین، میانبرد، و خطوط مرکزی بالا (Upper_CE) و پایین (Lower_CE) از دادههای OHLC است.
Читать полностью…
ممد یه موزیکم بزار که بکس بیشتر عشخ کنن
خوشحالی پخش کن
اینم هدیه وایپر بود به مناسبت یلدای باستانی . ایران زمین
سید خودت کشتی اون اپشن ها رو بزن اری فرام . بعد با ایندکس بگیرشون
نه اینپوت استرینگ بزار خو حالو اپدیت کرده چته وایپر . منطقیه میپذیرم
ازش استفاده هم میکنیم
2. Build and Run:
- Open the project in your preferred IDE (e.g., Visual Studio).
- Restore the NuGet packages.
- Build the project to ensure there are no errors.
- Deploy the compiled DLL to cTrader and load the indicator.
This setup will allow you to create a cTrader indicator using .NET 6.0 that draws ellipses on the chart based on the visible bar prices.
یکی ای میل زده گفته وایپر دستت درد نکنه موزیکا خوبن فقط فوروارد رو باز کن
داش چش
فقط سر راه برمیگردی یه دو کیلو هم برا ما بیار
چی !؟
باقالی دیگه
ها واسه پلو با ماهی . درحدد
خب داستان این چیه که نوشتی وایپر
هیچی کار نمیده ببین
🔻نمایش مفاهیم الکترواستاتیک بهصورت یک نمودار مثلثی
🌀نمودار ارتباط بین سه کمیت اصلی زیر را بیان میکند:
• چگالی بار الکتریکی - ρ
• پتانسیل الکتریکی - V
• میدان الکتریکی - E
راس های مثلث:
سه کمیت اصلی (ρ، V و E) در رأسهای مثلث قرار دارند.
روابط بین کمیتها:
از ρ به V: با استفاده از معادله لاپلاس و انتگرال موجود میتوان پتانسیل الکتریکی را از چگالی بار به دست آورد.
• از V به E: با رابطه گرادیان
E=−∇V
میدان الکتریکی از پتانسیل محاسبه میشود.
• از E به V: با استفاده از رابطه خطی انتگرالی
V=−∫E⋅dl
پتانسیل الکتریکی از میدان به دست میآید.
• از ρ به E: با انتگرال کولن میتوان میدان الکتریکی را بر حسب توزیع بار محاسبه کرد
روابط ماکسول شامل معادلات دیفرانسیل (در حالت الکترواستاتیک) نیز نشان داده شده است.
#ریاضیات_در_فیزیک
🔹کانال تخصصی ریاضیات
♾ @mathematics_learn
خوشحالن . ورود عن مایه گذاران خارجی به بورس 😁
Читать полностью…متاسفانه دارن . و همشون با همن
پولا هم لندن
جاکشا مثل ساس تکثیر میشن . تمامی ندارن . کون گشاد و اوضاع هم اورت
Читать полностью…چرا این جورین
چون دنبال میان بره و بعد باید یه راه کج و کوله رو پونصد بار بره و نرسه
شیر تو منطقت که از منطق اخوندا منطقی تره . شاشو
Читать полностью…ها مثل دات ای ار . :)
Читать полностью…نه باو من بلد نیستم میگم یعنی
Читать полностью…7. ایجاد و بروزرسانی خطوط برای Upper_CE و Lower_CE:
var line L1 = na
var line L2 = na
if barstate.islast
// Delete the previous lines if they exist
line.delete(L1)
line.delete(L2)
// Draw new lines for Upper_CE and Lower_CE
L1 := line.new(x1 = bar_index[LOOK_BACK], y1 = UPPER_CE, x2 = bar_index + 3, y2 = UPPER_CE, color = color.blue, width = 2)
L2 := line.new(x1 = bar_index[LOOK_BACK], y1 = LOWER_CE, x2 = bar_index + 3, y2 = LOWER_CE, color = color.red, width = 2)
var table myTable = table.new(position.top_right, 7, 1)
if barstate.islast
table.cell(myTable, 0, 0, 'Upper Shadow: ' + str.tostring(UPPER_SHADOW, '#.##'), text_color = color.white, bgcolor = color.green)
table.cell(myTable, 1, 0, 'Lower Shadow: ' + str.tostring(LOWER_SHADOW, '#.##'), text_color = color.white, bgcolor = color.red)
table.cell(myTable, 2, 0, 'Body Range: ' + str.tostring(BODY_RANGE, '#.##'), text_color = color.white, bgcolor = color.blue)
table.cell(myTable, 3, 0, 'Mean Threshold: ' + str.tostring(MEAN_THRESHOLD, '#.##'), text_color = color.white, bgcolor = color.purple)
table.cell(myTable, 4, 0, 'Mid Range: ' + str.tostring(MID_RANGE, '#.##'), text_color = color.white, bgcolor = color.orange)
table.cell(myTable, 5, 0, 'Upper Center (Upper_CE): ' + str.tostring(UPPER_CE, '#.##'), text_color = color.white, bgcolor = color.blue)
table.cell(myTable, 6, 0, 'Lower Center (Lower_CE): ' + str.tostring(LOWER_CE, '#.##'), text_color = color.white, bgcolor = color.red)
چو ایران نباشد تن من مباد
Читать полностью…اینا که کندل بازن حالا عشخ میکنن
Читать полностью…خب بریم یه چرخی روی ورژن 6 پاین بزنیم
داشمون تریدینگ ویو enum رو اضافه کرده
هرچند قبلش هم خودم پبادش کرده بودم
بعدشم یه کد بزاریم