[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 119
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Here's the code from the tutorial.
int Count=0; // Global variable.//--------------------------------------------------------------------
int init() // Special function init()
{
Comment ("Function init() was triggered at start"); // Message
return; // Exit init()
}
//--------------------------------------------------------------------
int start() // Special function start()
{
double Price=Bid; // Local variable.
Count++; // Tick counter
Comment("New tick ",Count," Price = ",Price);// Message
return; // Exit start()
}
//--------------------------------------------------------------------
int deinit() // Special function deinit()
{
Comment ("Deinit() triggered during upload"); // Message
return; // Exit deinit()
}
//--------------------------------------------------------------------
How can Comment("New Tick ",Count," Price = ",Price) be moved to the bottom right corner of the chart, for example?
Here's the code from the tutorial.
int Count=0; // Global variable.//--------------------------------------------------------------------
int init() // Special function init()
{
Comment ("Function init() was triggered at start"); // Message
return; // Exit init()
}
//--------------------------------------------------------------------
int start() // Special function start()
{
double Price=Bid; // Local variable.
Count++; // Tick counter
Comment("New tick ",Count," Price = ",Price);// Message
return; // Exit start()
}
//--------------------------------------------------------------------
int deinit() // Special function deinit()
{
Comment ("Deinit() triggered during upload"); // Message
return; // Exit deinit()
}
//--------------------------------------------------------------------
How can Comment("New Tick ",Count," Price = ",Price) be moved to the bottom right corner of the chart, for example?
do not use Comment, but create a label and output text to it
Got it, but unfortunately don't know how to do it yet.... I'll keep learning.
Thanks for the reply :-)
Oh, there's one more thing I wanted to ask. In the comment ....Comment("New tick ",Count," Price = ",Price);. is the word Count linked to the Global variable int Count=0; or to the tick counter Count++;?
Got it, but unfortunately don't know how to do it yet.... I'll keep learning.
Thanks for the reply :-)
Oh, here's something else I wanted to ask. In the comment ....Comment("New tick ",Count," Price = ",Price);... is the word Count linked to the Global variable int Count=0; or to the tick counter Count++;?
You declare the Count variable once, as a global variable.
prviet
The Expert Advisor works and freezes (does nothing at all)...
It continues to work only after "Compile" in MetaEditor
What can it be?
A question to those who program for others for money -
If not specified separately, does it mean that the customer will receive the source code or only the compiled version?
Thank you!
Hi All !
Check if I have calculated correctly:
Net Profit 317781*100/10000 Initial Depo = 3177% over 10 years / for 10 years = 317.7% per year / 12 months/year = 26.47% per Month.
10000 Initial Deposit * 26.47% = 2647$/month or approximately = 74,116 RUB/month.Hi All !
Check if I have calculated correctly:
Net Profit 317781*100/10000 Initial Depo = 3177% over 10 years / for 10 years = 317.7% per year / 12 months/year = 26.47% per Month.
10000 Initial Deposit * 26.47% = 2647$/month or approximately = 74,116 RUB/month.Initial Deposit = 10,000. In 10 years the deposit = 317781. Net profit = 317781-10000 = 307781. (Initial deposit is money, which you put on the account ten years ago, and it has to be removed from the calculations).
Let's calculate in percent 10 000 = 100% ; 307781 = X % ; X = 307781*100/10000 = 307781/100 = 3077.81% in 10 years. Let's calculate for one year: 3077.81/10 = 307.78% per year
Let us calculate for a month: 307.78/12 = 25.64% per month . ..
artmedia70:
Let's calculate for the year: 3077.81/10 = 30.78% for the year.
Is that the inflation rate? :)))) I don't want a future... :((