[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 169

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
What does i equal?
I just wanted to show the basics - i is defined as:
i.e. starts at the highest bar and goes to zero.
If I keep the Indicator running then for 0 values of i everything starts working (draws rectangles for current
etc.), but there is nothing on the history. I thought maybe it has something to do with the definition of the array!
I only wanted to show the basics - i is defined as:
i.e. it starts at the highest bar and goes to zero.
If I keep the Indicator running then for 0 values of i everything starts working (draws rectangles for current
etc.), but there is nothing on the history. I thought maybe it has something to do with the definition of the array!
Then I will have to show the full code of the indicator.
Then you will have to show the full code of the indicator.
Here's the code - I've removed everything that wasn't relevant to the problem:
Where to start writing void ManagePositions() by knowledgeable conditions
There are arrays
for (tf = 0; tf < 5; tf++)
{
......
int TF[tf] - time frame {5,15,30,60,240}
int signal[tf] - "1" - buy
- "2" - close buy
- "-1" - sell
- "-2" - close sell
int mn_b[tf] - magic_number_buy different for all time frame
int mn_s[tf] - magic_number_sell different for all time frame
}
It should
open
on time frame 5.15 open in one direction up to three orders
- 1 MM order = 1 MONEY
- 2 MM order = 2
- 3 MM order = 3
at time frame 30 open one way up to two orders
- 1 MM order = 2
- 2 MM = 3
at time frame 60 one order is opened to one side
- 1 MM order = 3
at time frame 240 does not open
Dilution of the second and third orders according to different conditions
In total we get no more than 9 orders to one side
Close
When a time frame close sell signal appears, this closes all sell orders in the given time frame
When a time frame close buy signal appears, it closes all buy orders in the current timeframe
Please help
Please explain how to identify a ticket or order number if it is known to be the first with a given magic number.
Thank you in advance!
I. Kim's branch 'Useful functions from KimIV'.
GetTicketLastPos() function. Page 19.
This function returns the ticket of the last open position or -1.
The function GetIndexLastPos(). P.17
This function shall return the index of the last opened position or -1.
The function IndexByTicket(). P.12
Returns the index (the index number in the general list of set orders or open positions) of the order or position by the ticket. If IndexByTicket() cannot find an order or position with the required ticket, it will return -1
I. Kim's branch 'Useful functions from KimIV'.
GetTicketLastPos() function. Page 19.
This function returns the ticket of the last open position or -1.
The function GetIndexLastPos(). P.17
This function shall return the index of the last opened position or -1.
The function IndexByTicket(). P.12
Returns the index (the index number in the general list of set orders or open positions) of the order or position by the ticket. If IndexByTicket() cannot find an order or position with the required ticket, it will return -1
Thank you for your help!
Here's the code - I removed everything that wasn't relevant to the problem:
I found the cause:
instead of .
Thank you!
Another basic question to my code above - the exact same Indicator runs separately
and draws a line in the window below the main one (and another one adds other graphical objects in the upper window).
The two for loops inside while() noticeably overload the computer.
- Is it possible to create rectangles, arrows etc. at the top and a line
(RSI type curve) at the bottom?