
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
As I said - simple substitution
As I said - simple substitution
thank GumRai: but my further question is i believe that ?????????() is OrderOpenTime()
now how do i make it work with my trading logic like you point early
Here there are no conditions for opening an order and you over-write the value of lastTicket.
Your code has no logic, it is just 3 sections of code that are totally unrelated to each other
===========================================================================================================================
why i ask is i arranged the result like this BELOW code......it resulted to what i wanted but the problem is it opens multiple orders in a single line. see the RESULT PICS above
There is no logic as your code is 3 sections that do not relate to each other.
I can only conclude that you have copied and pasted sections of code from other EAs in the vain hope that they will work together
" i believe that ?????????() is OrderOpenTime()"
Proves that you have no idea what the loop does and you did not write it.
GumRai please this is my whole code mainly opens only sell. like you said all this disconnections came as a result of allowing my ea to open multiple order and looping thing before is just simple lopped my orders like this
I am not sure if that EA is just poorly written, incomplete or a working EA with chunks of code removed.
You say it opens mainly sells, well I don't see that it can ever open a buy.
The main condition to open a buy is
The only other place in the code that Opn_B appears in the code is
Opn_B=false
So there is nowhere that it can be set to true.
Incidently
A loop that only opens orders - great commenting.
I am not sure if that EA is just poorly written, incomplete or a working EA with chunks of code removed.
You say it opens mainly sells, well I don't see that it can ever open a buy.
The main condition to open a buy is
The only other place in the code that Opn_B appears in the code is
So there is nowhere that it can be set to true.
Incidently
A loop that only opens orders - great commenting.
thanks for reviewing my code and spotting out recommendation and corrections
GumRai: that is why i told you then that many people may not understand it but i do, and you are able to understand because you understand code very well,
furthermore i have my reason for making the ea open only sell , my problem with this request made my ea rough but when i got the solution i will reorganize every thing again.
look at the ea i remove conditions to close and also buy condition, which makes the ea looks incomplete
.why is because i want to make sure it fulfill this conditions......opening order in
highest open price in current chart symbol and open 10pip above it if its buy/open 10pips bellow if its sell.
i remove close conditions because i don't want backtest to close trades while testing to make sure the code is right before other condition is put in place .
once the solution is reach i will organize my ea again with appropriate closing condition that is why am asking you to help me with this problem though your helping.
Well, I have given you the code to find the order with the highest open price.
It is now a simple matter of checking if price is at least 10 pips above this value and, if so, open another order
please GumRai: how can i place the loop in the ea,because the way i did it didnt work in backtest......
how did i do it? i used highest_open_price and highest_Ticket to write some of my conditions in the ea but it didnt give me desired result on back test
maybe am missing something?