monolisa wrote:Hi deeforex,
I loaded the indicator (with Allow DLL IMport enabled) and set the shift to 2 and period multiplier to 2 - it works. However, if you go back to the setting and change the shift to 3, the offline chart never refresh to reflect the new shift value.
I wonder if the indicator is changed to a script this problem might be resolved.
Comments welcome.
Lis
Never Lose Again
Moderator: moderators
I know my way around period converters...I tried every which way to get the price to shift and it is just not shifting.
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
- monolisa
- rank: 150+ posts
- Posts: 351
- Joined: Fri Jun 12, 2009 11:38 am
- Reputation: 0
- Location: All Quiet on the Western Front
- Gender:
Hi MO,
I notice the time displayed on the offline chart is quite deceiving.
For example if you set multiplier as 12 and shift as 2, logically you would expect the candle on the offline chart would show 0200, 1400, 0200 etc. However, due to whatever reason, the chart shows 0000, 1200, 0000 etc. If you check the price of each candle the price does conform to the shift value defined.
Wonder if this is a limitation of MT4 offline charts...
Lis
I notice the time displayed on the offline chart is quite deceiving.
For example if you set multiplier as 12 and shift as 2, logically you would expect the candle on the offline chart would show 0200, 1400, 0200 etc. However, due to whatever reason, the chart shows 0000, 1200, 0000 etc. If you check the price of each candle the price does conform to the shift value defined.
Wonder if this is a limitation of MT4 offline charts...
Lis
"Know your enemy and know yourself, find naught in fear for 100 battles. Know yourself but not your enemy, find level of loss and victory. Know neither your enemy or yourself, wallow in defeat every time." - Sun Tzu
I found the customcandle6 indi to be glitchy and unusable for my purposes.
Here are all a features a working (on all time frames) custom candle needs.
1. Connect an open to a close (number of bars)
2. Start time
3. Shift from start time
I am not a coder, but I don't think that it is that difficult.
Here, I did it by hand
:

Here are all a features a working (on all time frames) custom candle needs.
1. Connect an open to a close (number of bars)
2. Start time
3. Shift from start time
I am not a coder, but I don't think that it is that difficult.
Here, I did it by hand


- monolisa
- rank: 150+ posts
- Posts: 351
- Joined: Fri Jun 12, 2009 11:38 am
- Reputation: 0
- Location: All Quiet on the Western Front
- Gender:
Hi MO,
I agree that customcandle6 isn't the best indi out there, more work definitely need to be done.
Anyway, I did give it a try based on your chart (see attached).
I imagine that an indicator that is intelligent enough to plot the candles for us by doing just one step - connecting the open and close price of the starting and ending candle. By calculating the time difference between the starting and ending candle the indi should be able to identify the custom period and the proper start time and shift period.
TRO might be able to help
BTW, nice mighty zone trade on GBPUSD using custom period.
Lis
I agree that customcandle6 isn't the best indi out there, more work definitely need to be done.
Anyway, I did give it a try based on your chart (see attached).
I imagine that an indicator that is intelligent enough to plot the candles for us by doing just one step - connecting the open and close price of the starting and ending candle. By calculating the time difference between the starting and ending candle the indi should be able to identify the custom period and the proper start time and shift period.
TRO might be able to help

BTW, nice mighty zone trade on GBPUSD using custom period.
Lis
- Attachments
-
- mo7.gif (33.11 KiB) Viewed 7224 times
"Know your enemy and know yourself, find naught in fear for 100 battles. Know yourself but not your enemy, find level of loss and victory. Know neither your enemy or yourself, wallow in defeat every time." - Sun Tzu
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
- monolisa
- rank: 150+ posts
- Posts: 351
- Joined: Fri Jun 12, 2009 11:38 am
- Reputation: 0
- Location: All Quiet on the Western Front
- Gender:
Hi MO,
Are you being sarcastic about the squiggly and oscillator? I thought these two words are banned in Krelik?
Lis
Are you being sarcastic about the squiggly and oscillator? I thought these two words are banned in Krelik?

Lis
"Know your enemy and know yourself, find naught in fear for 100 battles. Know yourself but not your enemy, find level of loss and victory. Know neither your enemy or yourself, wallow in defeat every time." - Sun Tzu
Of course I am being sarcastic
You would think those two words would be banned, but every time I turn around someone is adding a new squiggly and/or oscillator to their charts.
Squiggly and Oscillators sort of remind me of the Facehugger from the movie Aliens...
No you cannot see the market better when they leach onto your face!

You would think those two words would be banned, but every time I turn around someone is adding a new squiggly and/or oscillator to their charts.
Squiggly and Oscillators sort of remind me of the Facehugger from the movie Aliens...
No you cannot see the market better when they leach onto your face!

monolisa wrote:Hi MO,
Are you being sarcastic about the squiggly and oscillator? I thought these two words are banned in Krelik?
Lis
- monolisa
- rank: 150+ posts
- Posts: 351
- Joined: Fri Jun 12, 2009 11:38 am
- Reputation: 0
- Location: All Quiet on the Western Front
- Gender:
Hi MO
From the look of the GBPUSD daily chart using custom candle, if price goes down to and break the last 2 weeks low in the next few days there is a possibilty of a prolonged downtrend?
I make such conclusion based on PA alone, no S&O
Thanks.
Lis
From the look of the GBPUSD daily chart using custom candle, if price goes down to and break the last 2 weeks low in the next few days there is a possibilty of a prolonged downtrend?
I make such conclusion based on PA alone, no S&O

Thanks.
Lis
"Know your enemy and know yourself, find naught in fear for 100 battles. Know yourself but not your enemy, find level of loss and victory. Know neither your enemy or yourself, wallow in defeat every time." - Sun Tzu
MightyOne wrote:I know my way around period converters...I tried every which way to get the price to shift and it is just not shifting.
I'm not sure why my initial tests showed that it was working and so did Monalisa's. I tried loading them again with your example of a 9hr bar. That did not prove fruitful. I looked through the code and saw that there's a bug in there.
Code: Select all
shift = Period() * 60 * TimeShift;
//i_time = (Time[start_pos]-shift)/ps; //WRONG!!!
i_time = (Time[start_pos-shift])/ps; //Correction, deeforex
if TRO gets a chance, he might want to confirm that the correction I made is in fact correct. I'm not a coder.
I took these screen shots and they seem to say that everything is ok now.
The 1 hr chart that I loaded period converter onto. broker, MBTrading

TimeShift equal -1 (negative 1), previous hourly bar

TimeShift equal 1 (positive 1), "future" hourly bar

MO, when you get a moment, could you please test to see if this corrected version works? I will be very interested to see how you are using this

dee
- Attachments
-
PeriodConverterOpt_v1.5_TimeShift.mq4
- (16.09 KiB) Downloaded 421 times
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.