when x> happens start counting, modify variable (one you have created) to 0, then once per bar add 1 to the variable, this will hold and update how many candles back when the cross happened.
Posts made by jstap
-
RE: Check How many Bars Passedposted in Questions & Answers
-
RE: Check How many Bars Passedposted in Questions & Answers
When the cross happens count to candle ID's from that point, then check if < 10 now
-
RE: Draw Line on Oscillatorsposted in Questions & Answers
In a way using time is quite easy - was value < or > this on this candle, choose the candle by time.
-
RE: Yellow Dot Clarificationposted in Questions & Answers
Yes generally is if true use orange, if false use yellow.
-
RE: Draw Line on Oscillatorsposted in Questions & Answers
Mt4: https://fxdreema.com/shared/2lNuitAH
MT5: https://fxdreema.com/shared/HBzYhCO3Think you probably want something (like place a trade), to happen on your main chart when something happens... Place the indicator on the chart while testing
-
RE: Draw Line on Oscillatorsposted in Questions & Answers
You can draw in the indicator window, and you can get the current value or shift it by candle ID, decide which one and Ill show you what to do, so you will know how to work with others.
-
RE: MT5 Bucket of Closed Profitsposted in Questions & Answers
Buckets seem to fail in MT5, you will have to create using pink blocks.
-
RE: price value of horizontal line into a variableposted in Questions & Answers
so what's the name in the object list?
-
RE: price value of horizontal line into a variableposted in Questions & Answers
when you click on the object does it daw the line? Look in your object list, probably adding a number to the end, so object on chart won't fine it.
-
RE: price value of horizontal line into a variableposted in Questions & Answers
It does I have done this many times for years, add a shared link to look at.
-
RE: Constant font sizeposted in Questions & Answers
I know in MT code it would work, FX must be doing something different behind the scenes
-
RE: Constant font sizeposted in Questions & Answers
I think you are right in doing it in description, according to chatgpt:
input int SessionStartHour = 0; // *** Gold Star: Session Start Hour ***
input int SessionEndHour = 24; // *** Gold Star: Session End Hour ***
input int LookbackBars = 20; // *** Gold Star: Lookback Bars for High/Low *** -
RE: Constant font sizeposted in Questions & Answers
Putting three * * * without the spaces may do it, the bold text above was created with *'s added either side on normal text
-
RE: Constant font sizeposted in Questions & Answers
O I see, I do not know how you would do that in FX the heading text ETC is a string but I do not know how to bold it
-
RE: stoploss problem in the 6th trade/transaction.posted in Questions & Answers
As you know it shouldn't do this, add a shared like to look at (is a lot easier than looking at pictures), and I'll try and see the problem.
-
RE: variable lot no workposted in Questions & Answers
Time is a little different, you can see how to optimise in here: https://fxdreema.com/forum/topic/19545/create-time-stamp-for-optimisation/10
-
RE: how to create a variable for fibonacci levels so thati can optimize my ea?posted in Questions & Answers
This should do it, use this wherever you currently use the FIB block, the custom code can go anywhere just make sure it is connected to another block, or under a pass. you can then optimise each constant leaving the variable with the different levels each pass:
https://fxdreema.com/shared/fmwHC8Pid
