Converting a non-custom scan into a strategy


Category:
0
0

Hi,

To convert a custom scan, we can follow this video:

 

Can we convert a non-custom scan to a strategy?

 

Like what if I wanted to convert the following scan to a strategy that just uses basic price and volume:

Price is at least $1 and less than $5

Volume is at least 100,000

Current bar’s high is gapping up 3% or more above previous close

Marked as spam
Posted by (Questions: 3, Answers: 5)
Asked on April 29, 2017 5:27 pm
93 views
1
Private answer

Sure thing. This is pretty simple. Although the first two conditions are going to be selected by the user when they load a stock symbol into the chart, yes? I mean those two items are pretty evident before you load that stock symbol into the chart. Nevertheless, here is how we go about doing this. You did not list an exit condition, so we assume you will load your own exit strategy into the chart.

def priceCondition = close >= 1 and close < 5; def volumeCondition = volume >= 100000;
def signalBar = high >= close[1] * 1.03;
def entrySignal = priceCondition and volumeCondition and signalBar;
AddOrder(OrderType.BUY_Auto, entrySignal[-1], open[-1],
100, Color.CYAN, Color.CYAN, "3% Higher Then Close");

 

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on April 29, 2017 7:41 pm
0

Quickly answered, accurate! Pete, I’m really liking this forum!

( at April 30, 2017 6:05 am)