once per bar needs to be under the condition, the cross needs to switch on the once per bar, otherwise the cross may happen after.
Posts made by jstap
-
RE: Object On Chart Daily Reset Issueposted in Questions & Answers
-
RE: HELP ..! How to create a SELL LIMIT and BUY LIMIT order in fxdreemaposted in Questions & Answers
show your workings with a shared project, these are in the standard blocks, a buy set below price would be a limit
-
RE: Object On Chart Daily Reset Issueposted in Questions & Answers
reset daily is once per bar set to day, once per day doesn't work as well because once per bar works on the first available tick/ there is no reset line block, I mean reset the value, redraw the line, change the variable...or whatever changes it for you.
-
RE: Close (partially) block with Buys and Sells managed separately?posted in Questions & Answers
there is nothing obviously wrong, disconnect some blocks and test until you find which one is preventing from working as needed.
-
RE: Object On Chart Daily Reset Issueposted in Questions & Answers
To reset everyday use, once per daily bar - reset line
-
RE: Fxdreemaposted in Questions & Answers
use once per bar, set to 5m and 1 hour for the job you want to do
-
RE: Convert Price To Pipsposted in Questions & Answers
You can do it with this code, create a variable called Distance, the price is relevent to what you are using:
MQL4
price1 = 1.2345;
price2 = 1.2350;// Calculate the absolute difference in price
double difference = MathAbs(price1 - price2);// Convert the difference to points and store in Distance
Distance = difference / Point;// Optionally, you can print the value of Distance for verification
Print("The distance in points is: ", Distance);
MQl5:
price1 = 1.2345;
price2 = 1.2350;// Calculate the absolute difference in price
double difference = MathAbs(price1 - price2);// Convert the difference to points and store in Distance
Distance = difference / _Point;// Optionally, you can print the value of Distance for verification
// Print("The distance in points is: ", Distance); -
RE: OrderSend error 138posted in Questions & Answers
I may have seen this error before but not recently, not sure how I resolved
-
RE: Put a price in a variableposted in Questions & Answers
Put the variables into a line, then backtest and watch to see if visually it doesn't place a trade when it should.
-
RE: Consecutive lossposted in Questions & Answers
Show in a shared link: project screen - projects - create a shared link - open in web - copy address bar and past here
skipping ticks will stop the blocks below from working for x ticks
Glad you enjoyed my book
-
RE: Creating a Scanner Listposted in Questions & Answers
on the right side of the project screen, you have a button depicting a spanner
-
RE: Put a price in a variableposted in Questions & Answers
Add a shared link to see what you have done
-
RE: compra y ventaposted in Questions & Answers
I am not sure what you are trying to do with your delay, your conditions should always work as the left and right operands are the same, I assume this gives you a buy and a sell once per candle
-
RE: Close with equity in profitposted in General Discussions
That way will do it, put the result into a comment to see if what you are getting is what you want

