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.
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?
-
RE: Object on chart on chart that EA is not running onposted in Questions & Answers
@timmyhanke it doesn't work, i am referring to the object by name: http://imgur.com/a/q64AM
-
Object on chart on chart that EA is not running onposted in Questions & Answers
I am using custom code block to open a new chart that has a default set of indicators on it. When looking for objects on the newly opened chart my EA cannot see the objects. Do the objects have to be on the same chart the EA is running on?
Even if I put in the chart symbol in the block it doesn't find the objects on the new chart.
Is there a way for the EA to look at objects on an open chart for a pair if the EA is not running on that chart?
-
Ryan Jones Fixed Ratio Position Sizingposted in Questions & Answers
My problem:
I have implemented Fixed Ratio Position Sizing in 'Volume Sizing' in my pending orders. The unit size is 1 and the delta is 2500. I started with $1000. I have got to $6500 and my unit size hasn't doubled.What I tried:
Getting my account profit > delta parameter ($3500) and seeing if unit size doublesWhat I expect:
It should have doubled the unit size at $3500 and $6000.My platform:
MT4 Pepperstone -
Automatically open a chartposted in Questions & Answers
Can't you make a block "Create Array", with string, int, decimal as a drop down for the array item type, then in the same category "Add Array Item" block, and "Print array" to print on chart, "For X Item" with dropdown as 0, 1, 2 to select array item, "For each Array Item" block, Etc etc
-
How can I remove Commentsposted in Questions & Answers
Put a variable into the comment, instead of hardcoded text, then change the variable to whatever it should be on each condition before you run the comment block.
-
Project not loading...posted in Bug Reports
I have been working on my project for week now. It was working well until i went to load it just now.. The project is not loading at all.. It is just saying "Loading..." and that does not go away...
My other projects all load, except this one, which is the only one i wanted to keep!!! Please make my project load, it's titled "QqeRsiRenko" in my project list. This is the shared version which is doing the same thing: https://fxdreema.com/shared/AjVCU0spc
Check out my screenshot: https://snag.gy/jBiR1V.jpg
Notice how my Constants and Variables say 0, but when I open them it shows my 12 Constants and 5 Variables there...
What can i do to fix my project and make it all show up correctly again??? -
RSI X> value not working properlyposted in Questions & Answers
Hello,
I'm trying to do something very simple.. Make a condition that says if the RSI with a period of 2 crosses greater than 15 then put an arrow on the chart. I have tested this and it does not work properly, i'm getting arrows on a lot of bars where the RSI is lower than 15, not where it is crossing above the 15 line. All i want it to do is what i have stated, which is put an arrow where it crosses the 15 line.
Has anyone else had this problem and fixed it?
Cheers,
Nick.