If you're trying to make a trade every bar then your "Once per bar" will block won't make any trades after the 1st one. Possibly your buy function runs first, so your sell function never runs. Take away "Once per bar" and see what happens.
Better yet, have 2 "Once per bar" functions coming off your "No trade", then put a buy on one and a sell on the other.
Latest posts made by nickmccomb
-
RE: No Short's opened - Only Long's - Why???posted in Questions & Answers
-
RE: Condition not triggeredposted in Questions & Answers
If your trailing stop is not triggered then you're still in a trade yeah? So use "IF Trade".
Your custom code won't work, you need to prepend your variables in custom code with v::
if you're using global variables (e.g Variables you assign in FXDreema menu on the left).
But you should just check if you're still in a trade by using "If Trade"... -
RE: Wow, this isn't my day!!!posted in Questions & Answers
Top right says "0 Free" this means you're out of time. Either make a new email and sign up again or pay. I'd advise to pay for a year because it'll take you that long to make a decent bot, so you'll save money and they deserve the money for all the work they've put into it.
-
RE: various signalsposted in Questions & Answers
i'm guessing if Bullish = Signal line > 0
or possible if Signal line > MACD (the bar)Bearish would be the opposite.
You can use the comment block to test things if you're not sure what they are. -
c:: prepended to custom code variablesposted in Questions & Answers
hi guys, when i create a variable in custom code it gets prepended with c::
int count = 0;
when mq4 is built in code it will be:
int c::count = 0;but count isn't meant to be a global, it's meant to be a local variable, so it gives me errors because c::count isn't defined globally
anyone know how to stop the build from adding c:: to local variables in custom code?
-
RE: Boxes EAposted in Questions & Answers
Find an indicator that does what you are looking to do and use that instead
-
RE: Object on chart on chart that EA is not running onposted in Questions & Answers
I use ChartOpen to open the chart, that returns the ChartId which i can then use as chart_id in ObjectGetValueByTime. e.g:
v::H_one_R = ObjectGetValueByTime(v::ChartId, "H1_R", TimeCurrent(), 0);
-
RE: Object on chart on chart that EA is not running onposted in Questions & Answers
That will be great, thank you!
-
RE: Object on chart on chart that EA is not running onposted in Questions & Answers
@timmyhanke said in Object on chart on chart that EA is not running on:
is > high line it will move it along price as lo
Doesn't work for objects on another chart, even if i put in the pair symbol in 'Market' parameter
-
RE: Object on chart on chart that EA is not running onposted in Questions & Answers
@fxDreema i don't get this. It sounds like you say i can access objects from another chart, but you didn't set an option on a block, so i can't use objects from another chart? Doesn't make sense to me sorry. I can or i can't?