I could be wrong but, any indicators & chart settings I want to use with EA I save as template so I can add in a couple of clicks, there is a block called apply template which would probably do this for you, also this post link text may help.
Posts made by jstap
-
RE: How to EA draw an indicator on the chart automatic?posted in Questions & Answers
-
If custom codeposted in Questions & Answers
Hopefully someone can help, my knowledge on mq4 code is limited, I am trying to wright nested if statements, what I am trying to do is:
if variable1=string1 then insert number into variable2, else if variable1=string2 insert a different number into variable2. This continues until match is found or value 0.0 is inserted into variable2.Thankyou
-
RE: Lines on high and low of rangeposted in Questions & Answers
@vonmunchy Think you for this but, when you change the start time to before 00:00 it stops working correctly.
-
RE: Lines on high and low of rangeposted in Questions & Answers
@vonmunchy No it repaints fine, it just often doesn't sit on the high and low.
-
RE: Lines on high and low of rangeposted in Questions & Answers
@vonmunchy Yes, I may use the logic in another EA but just lines at the moment, it is when the time starts at the end of one day and finishes the next that I seem to be struggling.
-
RE: Lines on high and low of rangeposted in Questions & Answers
@vonmunchy the high in a range and the low in the same range, the range is decided by a start and finish time, although candles could be used as there is always a set number in a range.
-
RE: Lines on high and low of rangeposted in Questions & Answers
I have made another version using a loop to find the candle ID but, like the others it is not correct. For some reason it works out the high candle ID as 1 or 8, it also works out the low candle ID as 1 or 8, they are never the same and each day the lines are drawn, the numbers may switch.
I doubt anyone knows why but any ideas on how to correct would be good.
-
RE: Lines on high and low of rangeposted in Questions & Answers
@vonmunchy No mate, looks like drawing lines over 00:00 time cant be done accurately.
-
RE: Buttonsposted in Questions & Answers
@helmud_h87 miro is not on here very often, if you click Piroozmand's link, then click the on tick tab all blocks are there to view.
-
RE: NO TRADE BLOCKposted in Questions & Answers
@jpsam Under check trades and count, also the yellow output under if trade does the same.
-
RE: Lines on high and low of rangeposted in Questions & Answers
@l-andorrà The vertical lines are where they are suppose to be, on the start and end of a session.
I have made about 30 different versions of this, all with something different, some with lines redrawing some without, all I am trying to achieve is verticals at set times, horizontals at the high and low of the same time period, nothing needs to redraw as once a day I can delete and then draw.Is probably me missing something simple but, any advice would be good.
-
RE: Lines on high and low of rangeposted in Questions & Answers
I have been trying to draw lines when time crosses midnight but the lines are drawn in the wrong place.
In the link above I have tried to use variables to record different times separately, some times this works but sometimes it doesn't. Any ideas on how I can make this work? any help on this is appreciated.
-
RE: Lines on high and low of rangeposted in Questions & Answers
@jstap Never mind, sorted what I did wrong.
-
Lines on high and low of rangeposted in Questions & Answers
In the above project is a simple EA where I am trying to place lines on the high, low, left and right of a range, the right and left work as expected but, the high and low do not sit in the correct place, can anyone see where I am going wrong or what I can do to correct. Thanks
-
RE: Place line price into variableposted in Questions & Answers
@l-andorrà Thank you so much for this, I must be blind because last time I looked for this orange block I only saw the three pink above
-
RE: Place line price into variableposted in Questions & Answers
@l-andorrà Thank you I will give it a go
-
RE: Place line price into variableposted in Questions & Answers
@l-andorrà Thank you for replying but I cannot see a way of getting this value through a loop, I have been trying to get price on back testing with no luck, I even added to on chart and tried on demo but no luck with that either.
-
Place line price into variableposted in Questions & Answers
In the link is a simple project all I am trying to do is place the line prices into a variable, does anyone know why it is not working for me?
-
RE: How can info be included on the 'comment' column when closing a trade?posted in Questions & Answers
@l-andorrà No worries, what you need is beyond my expertise
