Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 287
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
That's the thing, there's no free price in the code, you can't just replace it(((
Try here
change close to open. If it starts counting by open, then dig in this direction how to change this value. I can't run beta terminal now to look through its editor.
Change the value here beforehand:
Greetings all))
I wrote an EA, but it doesn't work at all)))) or it doesn't work correctly. i've been poking around, fixing many things, but nevertheless, the EA doesn't work.
here is a fragment of the calculation of trading decisions based on the RSI indicator :
//--------------------Данные------------------------------------
The thing is, the EA immediately opens a buy order, despite the value of the indicator, and does not want to close it. Objects like text and arrows do not appear.
Help me figure this out)) just new to this myself
Greetings all))
I wrote an EA, but it doesn't work at all)))) or it doesn't work correctly. i've been poking around, fixing many things, but nevertheless, the EA doesn't work.
here is a fragment of the calculation of trading decisions based on the RSI indicator :
//--------------------Данные------------------------------------
The thing is, the EA immediately opens a buy order, despite the value of the indicator, and does not want to close it. Objects like text and arrows do not appear.
Help me figure this out)) just new to this myself
So you have to write each inequality separately in the conditions? If you generalise somehow, it will be seen as an error? Then why does the program say there are no errors when compiling?
So you have to write each inequality separately in the conditions? If you generalize it somehow, it will be perceived as an error? Then why does the program say that there is no error when compiling?
There is no error, you just don't get the result you are expecting.
...How do you look for a cause in a situation like this?
Purely by accident I stumbled across it. You need to simplify things. Comment everything out, uncomment the first import, compile, call functions, etc.
There is no point in changing Close to Open, there will be little change. It is easier not to bother with such nonsense, but take the data from the formed bar.
There is no error, you just do not get the result you were expecting.
I figured it out)) one order was opened immediately without any further changes, because I had to write NULL instead of Symbol() in the line:
You have to write NULL instead of Symbol(), because there is a discrepancy in the variable types. Because of this, I saw RSI as a null value, so I immediately opened it, because the condition worked.
I have now fixed it and everything is fine.
The only problem is that the objects are only created once on the first trade.
ouch ouch ouch... I'm an idiot))))))
I create objects all with the same name, so I get the error that the object already exists)))))))