Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Formulas in Blocks Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
gallo2000sv
Posted : Saturday, July 5, 2008 6:18:19 PM
Registered User
Joined: 2/6/2007
Posts: 17
I want to have scans in real time, so i'm goign to get StockFinder RT in blocks but firs i want to know this:

If i want to make a simple formula like: the close of today is greater than the close of yesterday, in Telechart is (C > C1)
How  i do this in Blocks??
Craig_S
Posted : Saturday, July 5, 2008 6:32:33 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
The easiest thing to do is drag price to the condition palette, choose Moving Up and OK the condition.

Be sure to check out the videos on Blocks.com to learn more about creating conditions and scanning with them.

- Craig
Here to Help!
gallo2000sv
Posted : Saturday, July 5, 2008 6:53:41 PM
Registered User
Joined: 2/6/2007
Posts: 17
Ok that was simple, but was only an example, maybe i was not enought clear, my question is if can i make formulas in blocks.
There is any formula editor  like in Telechart?
I want to have some formulas like:
(C < O) AND ((H - C) > (C - L))
(C < C1) AND (C < XAVGC7) AND (C < XAVGC30)
And other more like this.

I have seen some videos of how to make scans, but i only see scans with indicators, not with the close prices, highs, lows, etc.
gallo2000sv
Posted : Sunday, July 6, 2008 12:48:40 AM
Registered User
Joined: 2/6/2007
Posts: 17
Ok now i know this can be done in the Realcode editor, and my question is where can i find any manual or reference guide for the functions and syntax for use this Real Code ??
For example how can i use moving average in Real code?
bobre1
Posted : Sunday, July 6, 2008 1:51:42 AM
Registered User
Joined: 10/7/2004
Posts: 886
Check out the RealCode Reference:  http://videos.blocks.com/blocks/realcodereference.pdf

Page 14 and the following pages should pretty much set you in the right direction.

But specifically, your first condition in RealCode is:

If Price.Close < Price.Open And ((Price.High-Price.Close) >  (Price.Close - Price.Low)) Then Pass

Bob
gallo2000sv
Posted : Sunday, July 6, 2008 2:57:21 AM
Registered User
Joined: 2/6/2007
Posts: 17
Thanks Bob, that's exactly what i was looking for.
bobre1
Posted : Sunday, July 6, 2008 11:06:42 AM
Registered User
Joined: 10/7/2004
Posts: 886
You're welcome.
Craig_S
Posted : Monday, July 7, 2008 9:35:58 AM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819

gallo,

The RealCode manual and many other workbooks and videos can all be found on Blocks.com.



- Craig
Here to Help!
gallo2000sv
Posted : Monday, July 7, 2008 1:54:19 PM
Registered User
Joined: 2/6/2007
Posts: 17
Thanks Craig. For your help.
Craig_S
Posted : Monday, July 7, 2008 2:40:50 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
My pleasure.

- Craig
Here to Help!
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.