[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 18
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
>> Put all the code out there, there's no smell of stoppers here yet...
It's not about stoppers, it's about closing a position as soon as the price touches the MA
It's not about stoplots, it's about closing the position as soon as the price touches the MA
Let it be so, it was you who wrote about the stops...) But I can't understand why it doesn't work without the code. The above piece is not very informative.
So be it, it was you who wrote about stoppers...). All the same, without the code it's impossible to understand why it doesn't work, the posted piece is completely uninformative.
I must have been expressing myself very wrongly, I apologize, I meant that MA itself should serve as a stop-loss
... ... position was closed as soon as the price touched MA
And the code is extremely primitive:
I already think that 4 conditions can be changed to 2
Then it's like this) Anyway, it's a delusional piece, the wagons are built at Bid prices, and to compare them like that... I don't know.
Something in your code, OrderSelect do not see?
It's standard, from a textbook:
It is important for me to understand if this is possible in principle, because when tested in visualisation mode, orders do not close on MAI want to know if it is possible to do this in principle because during testing in visualization mode, the orders are not closed on MA
In principle it is possible. Do you only have a single order possible in your system?
Try to normalize Bid/Ask prices and MA values for equality, it's necessary...
Why don't you use your Expert Advisor? I would have corrected it long time ago.
In principle it is possible. Do you only have a single order possible in your system?
Try to normalize Bid/Ask prices and MA values for equality, it's necessary...
Why don't you use your Expert Advisor? I would have corrected it long ago.
After that my head started spinning...
No) To a grail as to other galaxy, only attempts to realize and improve TC.
I couldn't get all the code into the post, so I'm attaching
After that, my head started spinning...
No) The Grail is like another galaxy, just an attempt to implement and improve TC.
I didn't manage to put all code in this post, so I am pasting it here.
But in principle, it somehow works:
The only thing that I have removed the increase in the lot. I thought you said that orders are not closed?
So how...?
...normalise Bid/Ask prices and MA values when comparing for equality...
I just don't quite understand exactly how to normalise... NormalizeDouble(Ask, Digits) ?
The problem is topical, I'm still wondering how to get orders to close immediately when the MA price is reached.
After normalisation an error came out during compilation for some reason, and in the part of the code where it wasn't touched at all.