[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 111

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
Print(digits) outputs 5
I simply get the price via print(hign[1])
I told you - read the documentation. Let me explain: why don't you read the Help file for the function?
Or are you going to bang on an open door?
Please help a newcomer!
How to display indicator lines on a chart in an Expert Advisor?
I do it in the indicator - it works, I copy the code to the Expert Advisor - it does not work (((
https://book.mql4.com/ru/samples/shared
Good afternoon, could you please tell me why the tester is not working right now at 11:33 Moscow time? Is it because there is no trading today? The currency data is there.
Look at the log. My tester is working at the moment.
Look at the log. My tester works at the moment.
Thank you, it worked. The mistake was a close stop loss. I wrote it like this:
VStopLossLong=Ask+MarketInfo(Symbol(),MODE_STOPLEVEL); // Minimal allowed stop loss level for BUY
VStopLossShort=Bid-MarketInfo(Symbol(),MODE_STOPLEVEL); // Minimal allowed stop loss level for SELL
Can you tell me where there is an error?
Thank you, it worked. The mistake was a close stop loss. I wrote it like this:
VStopLossLong=Ask+MarketInfo(Symbol(),MODE_STOPLEVEL); // Minimal allowed stop loss level for BUY
VStopLossShort=Bid-MarketInfo(Symbol(),MODE_STOPLEVEL); // Minimum allowed stop loss level for SELL
Can you tell me where the mistake is?
Full description - see here, all necessary checks before setting and modifying orders - here.For sell stops from Ask, for buy stops from Bid - in your case it is vice versa... :-)) Therefore the distance is still less than the minimum... Example:
Thank you, it worked. The mistake was a close stop loss. I wrote it like this:
VStopLossLong=Ask+MarketInfo(Symbol(),MODE_STOPLEVEL); // Minimal allowed stop loss level for BUY
VStopLossShort=Bid-MarketInfo(Symbol(),MODE_STOPLEVEL); // Minimal allowed stop loss level for SELL
Can you tell us where there is an error?
Forget for a moment that, on the contrary, StopLoss should be set lower for Buy, and higher for Sell...
Let's select the currency pair EURUSD. We need to open a short position. I select the first available terminal:
- quotes are 4 digits;
- Lastly fixed Bid = 1.4396 (of course, the issue is not the point);
- MarketInfo(Symbol(),MODE_STOPLEVEL) returns value 2.
Let's calculate the value of the variable VStopLossShort:
O_O
Although, if a pair is selected, for example, USDJPY, if you accidentally swap SL and TP, there shouldn't be an error... :)))))))))))))))))
Hello Gianni...
Guys, help if you have the time and some desire... I understand it's the weekend, but it just so happens...
Hello, Gianni...
Can I take it to you in private?
Guys, help if you have time and some desire... I know it's the weekend, but it just so happens...
Can I do it all at once?
Some people don't rest on their days off either...