کلیه محتوای این چنل رایگان است و رایگان باقی خواهد ماند .اشتراک هر سیگنال فقط جهت آموزش است .ورود به این چنل یعنی شما به استاپ لاس و مدیریت ریسک پایبند هستید .🛑 https://x.com/ICT_ADVANCED?t=6pj7NrzWBVhkPO8zqcsfIQ&s=09
X-min(x)/max(local)-min(local)
Читать полностью…توضیحات:
پارامترها:
value: مقداری که قرار است مقیاس شود.
min: حداقل مقدار بازه اصلی.
max: حداکثر مقدار بازه اصلی.
newMax: حداکثر مقدار بازه جدید.
newMin: حداقل مقدار بازه جدید.
داداش وقتی در مورد نامبر پراسس صحبت میکنیم
این پروسه ای نیست که شما در یک روز یاد بگیری و در دو ساعت تمام بشه
این پروسه ای نیست که ویژ خروجی بگیریم . این بالهای پروانه در یک کیاتیک سیستم است
پس
هر بخش دقیق و حساب شده هست
در کل دیدم حتی اسکیل کردن اعداد اشتباه بود متاسفانه
<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container" style="height:100%;width:100%">
<div class="tradingview-widget-container__widget" style="height:calc(100% - 32px);width:100%"></div>
<div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/" rel="noopener nofollow" target="_blank"><span class="blue-text">Track all markets on TradingView</span></a></div>
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-advanced-chart.js" async>
{
"autosize": true,
"symbol": "FOREXCOM:XAUUSD",
"timezone": "Asia/Shanghai",
"theme": "dark",
"style": "1",
"locale": "en",
"backgroundColor": "rgba(0, 0, 0, 1)",
"gridColor": "rgba(0, 0, 0, 0.06)",
"withdateranges": true,
"range": "1D",
"hide_side_toolbar": false,
"allow_symbol_change": true,
"details": true,
"hotlist": true,
"calendar": false,
"studies": [
"STD;Zig_Zag"
],
"show_popup_button": true,
"popup_width": "1000",
"popup_height": "650",
"support_host": "https://www.tradingview.com"
}
</script>
</div>
<!-- TradingView Widget END -->
با وی پی ان میرید سایته میبنده لینک رو
Читать полностью…هر بار بهم چک میزد بهش میگفتم
این ته داستان ما نیست
عاورین
ایضا ریدم پس کله شهرداری دوزاری
که نمیزاره ملت یه لقمه نون در بیارن
خارکصه
پلشت همچین سلت کنم برگات بریزه بیو
Читать полностью…با اسپرد گشاد هم کونت پارست
Читать полностью…بیا جلو تازه بازی شروع شده
کاری سرت بیارم
ولی وایپر هفتا ازت جلوعه . نشون بده خودتو بینیم
Читать полностью…| Full sequence: 2628 -> 1314 -> 657 -> 1972 -> 986 -> 493 -> 1480 -> 740 -> 370 -> 185 -> 556 -> 278 -> 139 -> 418 -> 209 -> 628 -> 314 -> 157 -> 472 -> 236 -> 118 -> 59 -> 178 -> 89 -> 268 -> 134 -> 67 -> 202 -> 101 -> 304 -> 152 -> 76 -> 38 -> 19 -> 58 -> 29 -> 88 -> 44 -> 22 -> 11 -> 34 -> 17 -> 52 -> 26 -> 13 -> 40 -> 20 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1
Читать полностью…
// Stop the timer when the cBot stops
Timer.Stop();
}
}
}
using System;Читать полностью…
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
namespace cAlgo.Robots
{
public enum NotificationSound
{
Announcement,
Confirmation,
Doorbell,
NegativeNotification,
PositiveNotification
}
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class CalculatorBot : Robot
{
private TextBox _display;
private double _firstNumber;
private double _secondNumber;
private string _operation;
private bool _waitingForSecondOperand;
private Button _lastClickedButton;
private DateTime _lastClickTime;
private bool _isStarting = true;
[Parameter("Notification Sound", DefaultValue = NotificationSound.PositiveNotification)]
public NotificationSound SoundType { get; set; }
protected override void OnStart()
{
_isStarting = true;
// Create a panel for the calculator
var panel = new StackPanel
{
Orientation = Orientation.Vertical,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
Margin = 10
};
// Create a display for the calculator
_display = new TextBox
{
Text = "0",
Width = 200,
Height = 40,
HorizontalAlignment = HorizontalAlignment.Center,
Margin = 5,
FontSize = 20,
IsReadOnly = true
};
panel.AddChild(_display);
// Create a grid for the buttons
var grid = new Grid(5, 5) // Expanded grid for more buttons
{
Margin = 5
};
// Add buttons to the grid
string[] buttons =
{
"7", "8", "9", "/", "sqrt",
"4", "5", "6", "*", "^",
"1", "2", "3", "-", "sin",
"0", ".", "=", "+", "cos",
"tan", "log", "exp", "C", "CE"
};
for (int i = 0; i < buttons.Length; i++)
{
var button = new Button
{
Text = buttons[i],
Width = 70,
Height = 20,
Margin = 3
};
button.Click += OnButtonClick;
grid.AddChild(button, i / 5, i % 5);
}
panel.AddChild(grid);
// Add the panel to the chart
Chart.AddControl(panel);
// Initialize the timer
Timer.Start(TimeSpan.FromSeconds(2));
Timer.TimerTick += OnTimerTick;
_isStarting = false;
}
private void OnButtonClick(ButtonClickEventArgs args)
{
var button = args.Button;
string value = button.Text;
// Flash effect
_lastClickedButton = button;
_lastClickedButton.BackgroundColor = Color.LightCyan;
_lastClickTime = DateTime.UtcNow;
// Play click sound
PlayClickSound();
🔻مسئله المپیاد جهانی هندسه (ریاضی)
Small and big triangles are similar. O and H are the circumcenter and the orthocenter of the small one and H' is the orthocenter of the big one. Prove that OH=OH'.
"مثلثهای کوچک و بزرگ متشابه هستند. O و H به ترتیب مرکز دایره محیطی و مرکز ثقل مثلث کوچک و H' مرکز ثقل مثلث بزرگ است. ثابت کنید که OH برابر OH' است."
• المپیاد جهانی هندسه، سال ۱۹۹۹
خب وقتی اول و اخرش رو نمیدونیم چی ؟
Читать полностью…using System;
class Program
{
static void Main()
{
// مقادیر نمونه
double value = 50;
double min = 0;
double max = 100;
double newMax = 1000;
double newMin = 0;
double scaledValue = ScaleValue(value, min, max, newMax, newMin);
Console.WriteLine($"Scaled Value: {scaledValue}");
}
static double ScaleValue(double value, double min, double max, double newMax, double newMin)
{
return ((value - min) / (max - min)) * (newMax - newMin) + newMin;
}
}
https://github.com/jonchurch/tradingview-js-api-tutorial
Читать полностью…ولش کن بعدا یه سایت واسش میزنیم
Читать полностью…تریدینگ ویو کم کم چربش کن
هم خودت هم سی تریدر
حالا دیگه
Saaren - Daram Miram 2 128.mp3
Читать полностью…حوصلم سر رفت
ممد جمع کن بساط ببریم ۲۵ تیک
بدو شهرداری اومد
و الگوریتم رو میبینیم که اماده میشه برای ضد حمله
Читать полностью…تمام الگوریتم ها سرویس
شتکش کنید پلشتو
یک حرکت از الگوریتم و حالا وایپر
Читать полностью…پشمام طلا جون چه زد و خوردی کردیم امروز با هم بی سابقه بود
Читать полностью…1314 -> 657 -> 1972 -> 986 -> 493 -> 1480 -> 740 -> 370 -> 185 -> 556 -> 278 -> 139 -> 418 -> 209 -> 628 -> 314 -> 157 -> 472 -> 236 -> 118 -> 59 -> 178 -> 89 -> 268 -> 134 -> 67 -> 202 -> 101 -> 304 -> 152 -> 76 -> 38 -> 19 -> 58 -> 29 -> 88 -> 44 -> 22 -> 11 -> 34 -> 17 -> 52 -> 26 -> 13 -> 40 -> 20 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1
Читать полностью…Читать полностью…
if (double.TryParse(value, out double number))
{
if (_display.Text == "0" || _waitingForSecondOperand)
{
_display.Text = value;
_waitingForSecondOperand = false;
}
else
{
_display.Text += value;
}
}
else if (value == ".")
{
if (!_display.Text.Contains("."))
{
_display.Text += value;
}
}
else if (value == "=")
{
try
{
if (!string.IsNullOrEmpty(_operation))
{
_secondNumber = double.Parse(_display.Text);
double result = Calculate(_firstNumber, _secondNumber, _operation);
_display.Text = result.ToString();
_firstNumber = 0; // Reset _firstNumber
_secondNumber = 0; // Reset _secondNumber
_operation = null; // Reset _operation
}
}
catch
{
_display.Text = "Error";
}
}
else if (value == "C")
{
_display.Text = "0";
}
else if (value == "CE")
{
_firstNumber = 0;
_secondNumber = 0;
_operation = null;
_display.Text = "0";
}
else if (value == "sqrt" || value == "sin" || value == "cos" || value == "tan" || value == "log" || value == "exp")
{
try
{
double operand = double.Parse(_display.Text);
double result = Calculate(operand, 0, value);
_display.Text = result.ToString();
}
catch
{
_display.Text = "Error";
}
}
else
{
_firstNumber = double.Parse(_display.Text);
_operation = value;
_waitingForSecondOperand = true; // Set to true to indicate that we are waiting for the second operand
}
}
private void OnTimerTick()
{
if (_lastClickedButton != null && (DateTime.UtcNow - _lastClickTime).TotalSeconds >= 1)
{
_lastClickedButton.BackgroundColor = Color.FromHex("#666666"); // Reset button background color
_lastClickedButton = null;
}
}
private double Calculate(double firstNumber, double secondNumber, string operation)
{
return operation switch
{
"/" => firstNumber / secondNumber,
"*" => firstNumber * secondNumber,
"-" => firstNumber - secondNumber,
"+" => firstNumber + secondNumber,
"^" => Math.Pow(firstNumber, secondNumber),
"sqrt" => Math.Sqrt(firstNumber),
"sin" => Math.Sin(firstNumber),
"cos" => Math.Cos(firstNumber),
"tan" => Math.Tan(firstNumber),
"log" => Math.Log(firstNumber),
"exp" => Math.Exp(firstNumber),
_ => 0
};
}
private void PlayClickSound()
{
if (_isStarting)
return;
try
{
SoundType sound = (SoundType)Enum.Parse(typeof(SoundType), SoundType.ToString());
Notifications.PlaySound(sound);
}
catch (Exception ex)
{
Print("Error playing sound: " + ex.Message);
}
}
protected override void OnStop()
{
if (_isStarting)
return;
Thank you for providing the detailed code. Let's finalize the implementation with a clear explanation of the key components and ensure everything is set up correctly, including the style and functionality.
### Explanation and Finalization
The CalculatorBot
is a trading robot for the cTrader platform that provides a simple calculator on the chart. It includes various buttons for numerical input, basic arithmetic operations, and scientific functions. The robot also features button click sounds and visual feedback for button presses.
Here's a breakdown of the components and functionality:
1. NotificationSound Enum: Defines the types of notification sounds that can be played when a button is clicked.
2. CalculatorBot Class: The main class for the calculator robot, inheriting from Robot
.
### Key Components
1. Panel Setup:
- The panel is created using a StackPanel
with vertical orientation, centered horizontally and vertically.
- The panel contains a TextBox
for displaying the current value and a Grid
for arranging the buttons.
2. Display Setup:
- The TextBox
(_display
) shows the current input or result.
- It is styled with a width of 200, height of 40, centered horizontally, with a margin of 5, and a font size of 20.
3. Button Grid Setup:
- The grid (Grid(5, 5)
) contains buttons for digits, basic operations, and scientific functions.
- Buttons are added to the grid with specific text, width, height, and margin.
- Each button's click event is handled by the OnButtonClick
method.
4. Button Click Handling:
- The OnButtonClick
method processes the button text to perform the corresponding action.
- The method updates the display, performs calculations, and handles special functions like clearing the input.
5. Flash Effect and Timer:
- The OnButtonClick
method also changes the button's background color to provide visual feedback.
- The OnTimerTick
method resets the button's background color after one second.
6. Sound Notification:
- The PlayClickSound
method plays a sound when a button is clicked, except during the robot's initialization and stop processes.
### Finalized Code
Here is the finalized and explained code for the CalculatorBot
:
کتفمم هم نیست
اگه منم همه پولدار بشن . مگه از من میگیرن . خوش حلالشون