remove the tick in the condition block and it will work
Posts made by edwardseer
-
RE: 2 Formula >> Condition, Crosses problemposted in Bug Reports
-
RE: Draw Text Variableposted in Bug Reports
i think that most of the block have the input parameter set first before the variables were adjusted to initalise. the white portion of the variable should be set before the input parameter i think. now if a user is trying to initialise certain input parameters of the block, it would still use the previous value the variable is holding. i think a reminder would be good to ask them to set the parameter in a pass block to initialise for example in the block before the actual block if its too much to change. i only saw that the buy/sell block also have this issue and the draw part but i think most of the block should have this issue. input parameter were set to the variable if used before the variables were changed to what is wanted using the variables at the right. so it ended up that the variable were using previous value before its changed in the main code then used in the main code.
an example to show for buy block. y-coordinate was reused so i set it to 0.01, and in the next block i set it to 0.1 lot. this are in oninit. ran it in a strategy tester, it should be using 0.1 lot if its working fine but it uses the value in the pass block 0.01
the code problem
http://snag.gy/o6NLP.jpg -
RE: Draw Text Variableposted in Bug Reports
i think the problem in here was that the y coordinate was set to the obj first before the adjust happened
http://snag.gy/vlJ6L.jpgthe objy was set to y first then the adjust came. the draw text uses the objY to set the coordinate. so the block was not initialise first before the draw text happened. although im fine with keeping it like this as the project im doing already was working in this format but there might be others who might be wondering about whats happening if they tried initialising the coordinate in the same block.
-
RE: Draw Text Variableposted in Bug Reports
what i think is that the y coordinate was set before the variables were initalise by the block.
look at mt4-2201.
i realised this problem only today and did not notice that it was present in the past. if this was fixed i have to modify a bit of my projects =O haha.
the change this refer to y coordinate -
RE: Draw Text Variableposted in Bug Reports
i added the formula to the right block then it started to work. whatever changes made to the block in the draw text does not affect the y coordinate at all.
it seems to only do it after the block has completed its function -
RE: Draw Text Variableposted in Bug Reports
hi, the variable at the side of the block for the variable = start of the block seems to have some problems. it does not make the variable = to what i input there before the start of the block.
-
RE: detecting market symbolposted in Questions & Answers
nice! thank you! is this added to the local version too?
also, for the run block, is it possible to link the block id to the block it currently is linked to. after each time i normalise project ID and if the block ID changed i have to manually changed the block ID in these blocks. -
RE: Writing EA Name In "Comment" Field Of Tradeposted in Questions & Answers
hi, i think he meant this portion http://snag.gy/gFazg.jpg
used this portion for my ea previously. -
RE: detecting market symbolposted in Questions & Answers
is there a more efficient way of doing things ike what i did in mt4-3032?
trying to store the prefix of market symbol into a variable to use as text -
RE: detecting market symbolposted in Questions & Answers
nice thank you. did not notice this block.
-
RE: detecting market symbolposted in Questions & Answers
hi, is there a way to automatically detect if market symbol is USDXXX do this and if market symbol is XXXUSD do that other than manual keying the symbol. like the project info.
-
RE: Remove the bottom left thingsposted in Questions & Answers
how do i remove the bottom left things from showing
-
RE: partial closeposted in Questions & Answers
it happened when i used 2 of them maybe the bar was too fast resulted in multiple extra close. i will add in that once per bar maybe it will disappear
-
RE: partial closeposted in Questions & Answers
http://snag.gy/0ZsiC.jpg
i did this but the ea did this
http://snag.gy/aUwQa.jpg -
RE: add loop break for set current timeframeposted in Questions & Answers
alright ignore this thread lol all problems solved........ removed the loop (break) in my set current timeframe when condition is true which broke the ea.
-
RE: add loop break for set current timeframeposted in Questions & Answers
i dunno if thats solved but now the comments section is being overwritten by the comments of an indicator. is there any way to make the comments of the ea appear. i have set the comments block of the ea as last
-
RE: add loop break for set current timeframeposted in Questions & Answers
er nvm figured a way out by using condition timeframe>=extern timeframe haha
edit: the timeframe din work out as i thought it would. are timeframe int double or string?
i cant seem to put it into a variable so that the setttimeeframe loop can compare it against the chart timeframe -
RE: add loop break for set current timeframeposted in Questions & Answers
hi is it possible to add loop(break) for set current timeframe
-
RE: Bug in adjust field for text in local versionposted in Bug Reports
the bug also exists in the variable section when input string too
http://snag.gy/tpWPn.jpg