Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

How do I get the minimum price of the last 5 bars?
 Post subject: How do I get the minimum price of the last 5 bars? Post rating: 0   New post Posted: Wed 05 Oct, 2016, 13:14 
User avatar

User rating: 0
Joined: Tue 06 Sep, 2016, 11:04
Posts: 20
Location: United Kingdom,
Say my period is 30 minutes, OfferSide=bid. Is there a direct command to get the minimum/maximum from the last n bars, or do I have to use some kind of loop and get every bar first and only then compare them?

Thanks


 
 Post subject: Re: How do I get the minimum price of the last 5 bars? Post rating: 0   New post Posted: Wed 05 Oct, 2016, 13:30 
User avatar

User rating: 2
Joined: Sun 15 Apr, 2012, 22:19
Posts: 25
Location: GermanyGermany
There is an Indicator for min max values.


 
 Post subject: Re: How do I get the minimum price of the last 5 bars? Post rating: 0   New post Posted: Wed 05 Oct, 2016, 15:42 
User avatar

User rating: 0
Joined: Tue 06 Sep, 2016, 11:04
Posts: 20
Location: United Kingdom,
Any chance you'll tell me which one is it...?
Not everyone was born to code in Jforex. In MQL4 those are iLowest, iHighest.


 
 Post subject: Re: How do I get the minimum price of the last 5 bars? Post rating: 0   New post Posted: Wed 05 Oct, 2016, 16:02 
User avatar

User rating: 2
Joined: Sun 15 Apr, 2012, 22:19
Posts: 25
Location: GermanyGermany
Its called MINMAX.

See screenshot attached.
Image


Attachments:
minmaxindicator.png [23.02 KiB]
Downloaded 300 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com