Simple Coding Help - No Promise.

vijkris

Learner and Follower
Its really amazing that I get Reply from Expert Like you,

After earning sizable amount from Investing in stock market for 10 years I quite My Engineering job 2 years back to become Full time trader.

But I have very little idea about Programmes, Backtesting, etc..so I've been testing with real Money so far, I tried some Indicator based System, which made only loss. after reading Decision Points from NiftyNirvana,My thought process entirely changed.
and I am trying various Idea using These Decision Points but I wanted to Backtest before going Live.

If I get skeleton Programme Like What I asked or What you suggested,I could edit the programme with various combination for backtesting and repost result here in this forum.

If you feel I am in a wrong path Please correct me, as even after 2 years I am still struggling to find a profitable strategy. ( but I don't want to quit as I would like to trade till I die and also no problem with Money as I am making good money by investing).
if u want a profitable strategy, visit this thread.-
http://www.traderji.com/advanced-tr...action-perspective-using-vwap-sd-tf-amas.html

http://www.traderji.com/advanced-tr...d-vwap-ranges-prataps-method.html#post1106681

will eagerly wait for repost of results in the forum
happy trading. :thumb:
 

pratapvb

Well-Known Member
Its really amazing that I get Reply from Expert Like you,

After earning sizable amount from Investing in stock market for 10 years I quite My Engineering job 2 years back to become Full time trader.

But I have very little idea about Programmes, Backtesting, etc..so I've been testing with real Money so far, I tried some Indicator based System, which made only loss. after reading Decision Points from NiftyNirvana,My thought process entirely changed.
and I am trying various Idea using These Decision Points but I wanted to Backtest before going Live.

If I get skeleton Programme Like What I asked or What you suggested,I could edit the programme with various combination for backtesting and repost result here in this forum.

If you feel I am in a wrong path Please correct me, as even after 2 years I am still struggling to find a profitable strategy. ( but I don't want to quit as I would like to trade till I die and also no problem with Money as I am making good money by investing).
In my view it is defintely a wrong path.

As a trader
1. we should have a way to know the trend
2. we should trade in the direction of trend
3. When strong trend we should have a way to ride the trend
4. We should have a strict SL at entry and we should abide by it and we should have a way to trail the SL when it moves in our favor
5. We should have a way to know sideways (sometimes couple of small stops are taken out before we know that) and then avoid trading in sideways unless you are an expert and able to scalp

The previous post suggests a thread which is mine in which I discuss a few of the above
 
dear LJ,
it seems u r a professional algo trader, :clap:
pls go through the below post and read abt zerodha's opinion on tick data


no offence, in my opinion rtd 1.3 is one of the best freely available tick feed software.
no one except Esignal provides real tick data backfill, may be true data, I don know.

so we have to design our strategy based on these limitations.
I hope u understood what I wanted to say.:D
thanks for reading my post.:thumb:
what is rtd 1.3?
 

vijkris

Learner and Follower
dear LJ,
it seems u r a professional algo trader, :clap:
pls go through the below post and read abt zerodha's opinion on tick data
Code:
Originally Posted by Zerodha  View Post
http://tradingqna.com/2492/placed-or...er-other-chart
no offence, in my opinion rtd 1.3 is one of the best freely available tick feed software.
no one except Esignal provides real tick data backfill, may be true data, I don know.

so we have to design our strategy based on these limitations.
I hope u understood what I wanted to say.:D
thanks for reading my post.:thumb:
Thanks Vij
Had browsed that link already and Reproducing herebelow a Q&A from that link which echoes my sentiments EXACTLY.

But since zerodha has or can have a colocated server, why can't you simply process that tick data and send only the OHLC bar (1s/2s/5s/10s whatever is reasonable) data to clients.
Most Retail traders probably dont need each tick but the bars themselves can be more accurate. As long as your server can handle the load, the charts should generally match.
commented Jun 7, 2014 by SpacemanSpiff 69


Reply:
Not possible technologically today, but hopefully sometime in the future.
commented Jun 7, 2014 by Nithin 22,273
Now read this Interview of a warrior who lead millions to a battle field lying facedown, utterly defeated:
Sir agreed that u r not capable of competing with bigger warriors who r well equipped ,but atleast u could have lifted ur arms n armour to give a fair fight to the hapless millions whom u lead to the battle field ?

Reply:
NOT POSSIBLE, im PARALYSED !!!!!, presently can use only my tongue to invite u guys to the battle but i cant lift any of my other limbs to protect u, hopefully sometime in the future, whn i come out of PARALYSIS .!!!!!

Thank u , Regards.

P.S.:'m Fanatic fan of TB/JOSH/SHANKAR's RTD UTILITY , it was listed in my previous post just to give a full disclosure to the Seniors/Gurus for a proper Diagnosis of my problem.
 

cloudTrader

Well-Known Member
Experts Please Help On A Code for a Spread Line based on this condition:

SPREAD = (LastA/CloseA) – (LastB/CloseB)

Where

LastA = LTP of Stock A

CloseA= Yesterday Close of Stock A

LastB = LTP of Stock B

CloseB = Yesterday Close of Stock B


Thanks !!

PS: Can you please confirm Plotting such a Spread Line is possible or not?
 
Last edited:
Hi,

I need a little help in AFL. I am trying to use dual time frame in AFL.
Say I want to buy when price closes above 3 EMA in 5M and 15M time frame.
and sell when price closes below 5 EMA in both time frame.

I tried TimeFrameSet function but did not get what i want. Can any one post one sample piece of code.

thanks
 

vijkris

Learner and Follower
Hi,

I need a little help in AFL. I am trying to use dual time frame in AFL.
Say I want to buy when price closes above 3 EMA in 5M and 15M time frame.
and sell when price closes below 5 EMA in both time frame.

I tried TimeFrameSet function but did not get what i want. Can any one post one sample piece of code.

thanks
similar to 2ma system na? no crossing of ma?
 
Hi, Please help me in coding this AFL.
Buy when price crosses EMA50 on upward side
Sell when price crosses EMA50 on downward side

This much I have already done. Now comes the tricky part:
I need to know when the price of a scrip comes within, say 3%, of the EMA50 on either side. If possible using sound and pop alert for the buy/sell condition and price coming within range.

Thanks in Advance.
 

Similar threads