Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

Search the Community

Showing results for tags 'loop'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to Traders Laboratory
    • Beginners Forum
    • General Trading
    • Traders Log
    • General Discussion
    • Announcements and Support
  • The Markets
    • Market News & Analysis
    • E-mini Futures
    • Forex
    • Futures
    • Stocks
    • Options
    • Spread Betting & CFDs
  • Technical Topics
    • Technical Analysis
    • Automated Trading
    • Coding Forum
    • Swing Trading and Position Trading
    • Market Profile
    • The Wyckoff Forum
    • Volume Spread Analysis
    • The Candlestick Corner
    • Market Internals
    • Day Trading and Scalping
    • Risk & Money Management
    • Trading Psychology
  • Trading Resources
    • Trading Indicators
    • Brokers and Data Feeds
    • Trading Products and Services
    • Tools of the Trade
    • The Marketplace
    • Commercial Content
    • Listings and Reviews
    • Trading Dictionary
    • Trading Articles

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


First Name


Last Name


Phone


City


Country


Gender


Occupation


Biography


Interests


LinkedIn


How did you find out about TradersLaboratory?


Vendor


Favorite Markets


Trading Years


Trading Platform


Broker

Found 1 result

  1. This thread is about the For keyword in EasyLanguage. For Used in combination with To or DownTo to form a loop statement that will execute a set of instructions repeatedly until the loop count reaches the specified final value. The loop statement specifies a numerical variable that holds the loop count, as well as initial and final counter values. To specifies that the value of the counter variable is to be increased by one on the completion of each loop, while DownTo specifies that the value of the counter variable is to be decreased by one on the completion of each loop. The use of Begin and End statements is required to group the instructions for execution within the loop; a Begin must always be followed by an End. Begin should not be followed by a semicolon (, code lines within an instruction group should end with a semicolon (, and End should be followed by a semicolon (. Usage For Counter = IValue To FValue Begin Instruction1; Instruction2; End; or: For Counter = IValue DownTo FValue Begin Instruction1; Instruction2; End; Where: Counter - a numerical variable used store the loop count IValue - a numerical expression specifying the initial counter value FValue - a numerical expression specifying the final counter value Example Add the high prices of the last 10 bars to the HighPriceSum variable: For BarBackNo = 0 To 9 Begin HighPriceSum = HighPriceSum + High[barBackNo]; End; Add the high prices of the last 10 bars to the HighPriceSum variable: For BarBackNo = 9 DownTo 0 Begin HighPriceSum = HighPriceSum + High[barBackNo]; End; source: EasyLanguage manual
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.