[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 159

 
Vinin:

Own

is a long way of trial and error.

and public libraries have been tested by hundreds (thousands) of people.

although such an ancient lossless function by kimiv guru turned out to be unworkable)

 
veti-k:

Hello, could you change the default script in MT4 Period_Converter to open a new one in case a candle exceeds 10 pips?

Change it in extern! There is nothing to do!
 

Of course it is:

NormalizeDouble (Lot*3*K, MarketInfo(Symbol(), MODE_LOTSTEP));

- nonsense. The value of MODE_LOTSTEP is NOT an integer!!! Lot normalize, for example, like this:

int li_dig = MathCeil (MathAbs (MathLog (MarketInfo (Symbol(), MODE_LOTSTEP) / MathLog (10)));
double ld_Lot = NormalizeDouble (Lot, li_dig);

Dimitri! Try to start using other people's advice in life: "It's PREFERABLE to use other people's developments at the beginning of the way, than to fiddle with your own shortcomings"!!!!

 
Thanks!!!!! Wow, I'm a sheep...
 
borilunad:
Change it in the extern! There's nothing to do!



If you don't mind, can you tell me which part of the code needs to be changed?

 
veti-k:



If you can, can you tell me which part of the code needs to be changed?

There is always a variable representation at the beginning of the code, which you can pick up by testing, and once selected, put in the code:

echtern int = 10 point; Look and change to any value! Good luck!

 
if
borilunad:

There is always a variable representation at the beginning of the code, which you can pick up by testing, and once selected, put in the code:

echtern int = 10 point; Look and change to any value! Good luck!



If you can do it, I really need it. Please))
 
veti-k:
if

If you don't mind doing it, please))

If you have script Converter_Period, have a single variable:

extern int ExtPeriodMultiplier = 3; // new period multiplier factor

Put it on M1 and you get 3, 4 ... more minutes, according to your choice.

It's the same with the clock.

If you have RangeBars_fromM1_time, you also have one variable:

extern int    PointsInBar       = 100;

Set any number of points! Got it now!

 
borilunad:

If you have script Converter_Period, have a single variable:

Put it on M1 and you get 3, 4 ... more minutes, according to your choice.

It's the same with the clock.

If you have RangeBars_fromM1_time, you also have one variable:

Set any number of points! Got it now!


I got it. Maybe I didn't make it clear. What I need script Converter_Period to do is to make other timeframes. I want it to do the same thing, for example if a candle goes for 8 minutes, after 3 minutes the candle goes for 10 pips, then it should close and open again to finish the other 5 minutes. can I do it?
 
veti-k:

Yes, I see. Maybe I didn't make it clear. What I need script Converter_Period to do is to change timeframes, for example if a candle goes for 8 minutes, after 3 minutes the candle goes for 10 pips, then it should close and open another one, and go out for another 5 minutes.

Then you need RangeBars_fromM1_time

extern int    PointsInBar       = 100;

Set any number of points!