Bar Close Info

Section for discussions related to indicators, use of indicators, and building of trading stategies using indicators.

Moderator: admin

Bar Close Info

Postby MrRiversideDude » Sun Feb 23, 2014 8:49 pm

Hi, new to LUA and trading station, been coding in MT4 for several years. Need a little help. After a bar closes, I want to capture the following:

1. Bar close price
2. Value of one or more moving averages at bar close
3. MACD values at bar close:
- MACD, signal and histogram

Much thanks in advance.

-R
MrRiversideDude
 
Posts: 87
Joined: Fri Feb 21, 2014 7:50 am

Re: Bar Close Info

Postby Apprentice » Mon Feb 24, 2014 4:15 am

Try this indicator.
I have presented several methods to retrieve Data from the stream.
BCI.lua
(4.61 KiB) Downloaded 787 times

This is a pretty basic question.
Before you ask the next question, I encourage you've installed the SDK, read the included help.
http://fxcodebase.com/documentation.php
SDK Wiki is also available.
http://fxcodebase.com/wiki/index.php/Main_Page
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Bar Close Info

Postby texashtr » Mon Feb 24, 2014 11:01 pm

Is it possible to get this as a signal that only changes when a bar closes?

Much thanks.

Tex
texashtr
 
Posts: 6
Joined: Mon Feb 24, 2014 10:59 pm

Re: Bar Close Info

Postby MrRiversideDude » Tue Feb 25, 2014 6:53 am

Good idea. I'd be willing to pay a small fee since it seems so basic.

-R
MrRiversideDude
 
Posts: 87
Joined: Fri Feb 21, 2014 7:50 am


Return to Discussions

Who is online

Users browsing this forum: No registered users and 7 guests