Coindcx Algo Stoploss and Target Order with Tradingview | Algo Trading

NextLevelBot
75 followers
1 Video View·Apr 29, 2025
Learn how to set stop-loss and target orders on CoinDCX using TradingView for algo trading. This simple guide will help you automate your trades easily.
Hello everyone, I am Manoj Verma with you and
in this video I will tell you
how to do Algo Trading on Coin DCS.
So if you want to trade in crypto currency and
that too
with automation, then this video is going to be completely on that.
In the first video, I made it clear
how to get the API
from Coindix and how to connect it.
I also showed you an order placed.
So you can clear the basics from there.
This video is going to be a little long
as I will be giving you information about all the orders. I will
give information about the strategy and try to clear the basics.
So first of all let
us come here to Trading View. First of all let
me make it clear to you what is Algo Trading,
look at Gal Trading, the concept is that
if you want, like you are working or
roaming somewhere and you have a
strategy, you want to automate it
whenever the conditions in it match, the
colors should be applied automatically, it does not require internet or light being turned on or off
or the PC which is your system being turned on or off, then
you come to Trading View and
apply one of your strategies, as
for example I turned on a strategy
and you can see that this strategy that I have
turned on is a common strategy, so Super Trend
Ah Super Trend Indicator. Now first of all let
me make it clear to you that there are
millions of indicators on Trading View which people have
published. You can trade with any indicator
that has alerts. You have a
strategy and you
can trade with them. Also, if you
feel that you need to create your own logic
which has come to your mind and
is unique, then you
can create it in Pine Coding by learning Pine Coding. Otherwise you
can hire some pine coder and get it made from him. So
this is the Pine editor to write Pine code. We are not talking about this right now. Let
me
tell you a simple concept. Suppose here
long came according to super trend. So
automatically, wherever you are, whether you are working, whether you are
roaming around or you are in a mall,
your order will be placed automatically. If there is a short here then
yours will automatically be shorted. There are
multiple such alerts. Long Shot
TPSL TSL Multi Buy who buy parcel.
Parcel exits have many different
logics. There are alerts. So
we will tell you how it works today.
So what I will show you, I will
show you as a horizontal line because it
takes a lot of time for the indicator to move from one signal to another. So
we cannot wait that long. That's why I will
show you on the horizontal line.
Before that let me make one thing clear to you.
I had also made this thing clear in the first video
that you have to put your book on trading. Only then does
your order
go through. And as soon as you come to the public page or
go to the satex page,
this type of page will open in front of you. You have to
select coin DC. Here
we have named four methods. Variety
is provided. Like regular order. What is the work of regular order
? Direct buy,
direct sell or place direct limit
order or place direct Ah Sell Limit
order. In this
we have nothing to do with the previous position. Suppose you come and
feel that you need to buy somewhere,
whenever your alerts come then you
can use it for direct buy. It is used very rarely.
Second is exit. Exit is
used whenever you need to exit a position.
Suppose you have
TSL inside your indicator like coin
DCX does not give TSL it gives TPSL.
Meaning it gives you stop loss and target, so
you have created TSL inside your indicator.
So whenever that TSL is hit, whatever
exit code you enter will
exit your position. Fully algo, 99%
people use this. How does it work
? First, let me clear this up for you. I will
show you the first order for this. The way it works is that if
you wake up in the morning, you
apply your strategy and indicator and
shut down your PC and your first trade is
made for long, so what it will do is it will
check the previous trades, if any
position is open in that symbol, in that pair,
then it will close that first and
take a new long position, now if the second signal comes for
short, then it will close the previous position and
take a new position, so when
you took the first position, it was for long, so when you had
taken a long position, there was no trade, so
in this case the command code to close the position fails
and a new trade is taken. Right now I will apply this to you and
show you. And here comes
TV strategy. This is a little bit advanced. Let
me explain a little about it to you
on the chart. Look, there are
three ways it works on TradingView. Now
comes the fourth method of watch list which you
can also do with Coin DC. And
for this I will make a separate video on
how to work on the watch list with a single alert.
This will be a very useful video. If
you work on Coin DC or any
exchange. So this
is a very different feature for you. I will
make a separate video for this thirdly. For now let
me talk about TV strategy.
What is TV strategy? Like alerts. Let
me show you this just a second. This
is an indicator. What is inside the indicator
? You have multiple alerts.
Like here there is long, there is short. It has TP
long tassel, short TP. In this manner.
So when we create an alert condition,
like I took this indicator,
look here I have 12 types of custom
alerts. So whatever alerts I will set, I
will set an alert on long, then that order will be
placed. I will put it on short, it will be short. It is
not necessary that I apply all of them. I
can use two of these, I can even use three of these.
All are optional. None are
required. So it
is my choice. I can apply it. But
what happens inside the strategy is dynamic. There is no one like that
inside him. As an example, let me
show you the default. You will
go here and go to Create and
click on Strategy. You will be given a
trading view with a default strategy as a demo.
Today as soon as you
add it to the chart, you will see it coming on the chart.
Actually, the role of strategy is
for back testing. Which trade was taken when
and what is its performance etc.
You can see everything here. You
can see the overview. How many trades did you take etc.
Let's close that for now and let me
show you this. So I applied this strategy.
Now inside this you will see that it is becoming
long here. A short is occurring here. It is
getting long. It's getting shorted.
When I go to set alerts in the strategy,
I go to this condition and
select this strategy and within the condition, there is
our pair. In this you can see
inside the symbol the pair and five which is the time
frame, that is you are creating the condition in the 5 minute time frame.
What did I select in the conditions? My strategy. As soon as I
select the strategy, you will see here
that I am not getting the option to
choose the alert, long shot. So that's why
it is dynamic. So automatically it
gets known from inside that this has to be bought or
sold. So in this case, this
sentex TV strategy is used
dynamically. ok sir? This gets a bit advanced.
So if you work on strategy
then you will have to use this. Now let's
come back to the chart and I'm
back to mine now. I will remove this and hide it.
Now first of all we
take two horizontal lines. Let's make one of them
red. Let's make one green.
I am taking the horizontal line
as I told you earlier because I
know that if I wait for the signal
then it will take a lot of time. ok sir.
Took two lines. Now we go to the Centx page.
So we will create the first order of the fully algo to
close the previous position and take the new position. So we went and
fully selected the algo to see
in which mode you are working. So Coin DC
gives you two modes. One IR mode, one USDT
mode. By default everyone is
running in IAR mode right now. I think I do
n't know either. But IAR is running in mine.
Click on Buy because I
want to say Buy. Now here I have to
type in upper case. What to type in upper case
? I take Dj Coin like that.
DG Coin USDT Got this. After that
I am being asked, yes brother,
how do you want to place the order? There are three
options here. One is fund, one
is quantity, one is quantity
percentage. The fund is simple. Suppose
you have ₹ 1 lakh and you want to place a
trade of ₹ 10,000. So you have to
enter the amount here. Like let me
put in 1,000. So the amount has to be entered.
Whatever you enter in leverage will become your
default set. I put one there.
TPSL is optional and
I have covered it in the previous video also. Let me
repeat once how it works.
It is calculated as plus or minus depending on the current price. As
example ₹100. Now when your alert came the
current price at that time was ₹100 and if you
enter the value ₹10 here then your SL will be at ₹90.
And if you put ₹10 TP here
then your target will be at ₹110. For now
I take a stop loss of $1 with a target of $1.
Get it generated. A code was created.
What is the function of this code? Closing the previous position.
Adding a new position by key.
Why add bye? Because we have
selected bye here. So let me copy this.
After copying I
go to trading view and inside the green line
because we are not using the indicator right now.
We will add this inside the green line.
And I added satex. Let's
name it Test One. ok
sir. Now keep one thing in mind. After adding suck,
you have to go to notifications. You have to
click on Vbook and
come to the dashboard of the website and
add VBOK by clicking on it. I have already added it.
Once you add it,
whatever alerts you create, by default whatever
you have added, continues running.
If you want to make any changes then you have to
add it again. So, I create it.
So what happens now is that there are
two sections here in the alert section. In the alerts section,
an alert named my test came up which is
active. How is it working now?
Actually, I could have made it on the horizontal line also.
Many people work horizontally. As
an example, let me show you.
Suppose
I would put such a trend line on the trend line and as soon as this
line was touched, I would get an automatic buy.
ok sir? So let me remove this one.
So what have I done right now?
Which is the horizontal line, when the price
reaches near this line then I will get automatic
alerts and automatically one of my positions will be
bought and the previous position will be closed.
If I have a position. Like this
I create another alert again.
First of all, if you want, you
can repeat this thing again. I do it in short.
I click on the cell.
My short's santex also became a must. ok
sir? I copied it and went again and
inserted it inside the red line by adding alert. I am placing it in front of you.
Paste this and I will put it in test two. I
created it. The book I have in
store for you by default.
That's why I am not putting it. You will
have to put it in. Otherwise your order will not be sent.
Like, I will create an alert
section, here it will be visible with the name that
within your D coin, in the 5 minute time
frame, two alerts are active, one
alert is active, the alerts names that you were giving are
test one, test two, this is it. Now
whenever an alert comes it is visible in the alerts log
here whereas no alerts have come yet.
So what is our condition? Our
condition is that whenever this candle
touches the line, there will be an automatic buy. Because we are
not installing any indicator. So now
we will not wait for the line so that the candle reaches the line.
So that's why I trigger it intentionally.
As soon as I
trigger it, an alert will
come here and if you go here and look here,
I have a long signal. So
they did not cut any of my previous positions
because I did not have any previous
position and added a new position. Now if you
see, around ₹1000 is invested with the fund
because I had chosen oneX leverage and it came to
1X. Now here L is written, L
means this is on the long side. ok sir. Let
us go here again. You could have moved this line
a little. Suppose my other
condition would have been triggered. If this is triggered then
alerts will come here. This alert came. If you
go here, look at the old position, now it is
written short, which means the old position has been cut
and my short trade has become active. In this
way, all the signals you receive will keep
working automatically. Now you will
see one more thing in this, that I was
setting the TPSL by default, here
TPSL was not set for one minute
and I made a mistake that the TPSL that I set was
very long.
You can see for yourself that its value is not even $1
and I have put TPSL of $1.
That's why it is not working. So I need to
put in a TPSL that does that with the price.
So what do I do? I
go to Alerts and inside Alerts
I edit this thing. So
what do I do? Am. I give you my 10% percentage
deposit in cents.
That will be easy. It will be easier for you to see
as well. So I say SL is
10% and TP is 10%.
In this I will have to apply percentage further.
Otherwise, it will work in numbers.
So I went and this is long sorry I go to
short signal first. I took
off the shorts. How is the short detected?
I took off my shorts. One second
I'll turn this off. I go to settings.
Look, it is written correctly here. It means
this is short. I created another alert
and I paste this thing inside it.
So I pasted this control. It is
written correctly here also. Now let me put the percentage where I wrote 10.
For percentage 10% should be my TP and 10% should be
my SL. Let me save this.
After saving, I delete it
so that I don't get any alert. Secondly,
I go into that. I will make one more centex.
Because it became short. I will
make this from cloves. Get it copied.
Went again. And now it goes to edit. I am going to Test One
so that my Test One will get
changed. Get this changed. 10 is 10. I will
put the percentage in it. Because
I don't want that number anymore as the
number is getting smaller. Its price is
in dollars and cents and I
myself am unable to understand what value I should put in cents.
That's why I am putting percentage.
So what did I do now? Made dollars. Now
if you see,
TPSL was not applied in my long trade. If there is a short
trade then it will be shorted with TPSL in it.
So I trigger
this order again. And as soon as I
trigger it, alerts will come here.
This came in the log and if you see here,
my SL was placed 10% below whatever the price was here and it means that
SL is placed above on the sell side, so SL was placed above and
my TP was placed 10% below. That's why
this is how you can work and it
becomes the short side. So it is so easy to work
and the orders of Coin DC are
moving very fast. As you can see, I
still don't understand the concept of merging two windows. That's why,
otherwise I would have merged both of them and
shown you that you can
see both the things side by side. This is how
your order will be placed. I hope you have come to
know all these things. So look,
I have told you how this full algo
works. Now let's talk
a little about exit, that suppose you have
a position which is running and you have
created conditions within which your TSL is getting
hit. How will it work if your position is exited
? So first of all we
open a trade again and
what we do to open the trade is that I am
opening a short trade in
front of you. As soon as the alerts come here, we will wait.
Alerts came and my
short trade got opened here. As soon as my
short trade is opened, now suppose
I have some conditions. Let us create a condition for
exit. Went here and
after going here I took a line.
I will make its colour blue. Now we will
put the exit centex in it so that we can
know about the exit also. So, look at this,
as soon as we selected the exit, it asked us
brother type what do you want to take? Took IAR.
This is the default. Default means
suppose you have a buy side trade
and you want the close to be on the buy side only, then
you will select buy. But it does
n't make any difference to you. If
you want to cut the trade on any side then you will
click on it. Meaning you will not select anything and will let it
remain optional. Well after that
which one do you want to trade in, this is that one,
so we said Dodge USDT. If you do
not put this thing then it will cut off your whole trade.
Meaning, all the trades you have taken
in different pairs will be deducted.
Quantity is optional, there
is no need to enter the quantity. We got it copied and came here.
Inside this line we have created these colors,
which we name
exit and inside it we put this centex
and create it. Now
if you look, an alert named Exit would have appeared here.
If you
go to trade, we have a trade going on. So
as soon as we match the condition with this line.
Here the alert will come with the name Exit.
It came with the name Exit and if you look here, the
trade has been cut. This is how exit works.
And in the same way, as I
told you, the TV strategy that is used is
dynamic and
advanced. If you know how to use it then
you can make a bet on the strategy.
Inside this you do not have to select buy sell.
I am showing you for example.
This
is automatically available from Buy Sell Trading View. So I will put it in.
Quantity dust average and it
inserted. So if you see, the parameter inside this,
which is the parameter of buy sell action, is
going from the parameter of dynamic trading view and there is a piece size
which tells us that the old position has to be
cut and a new position has to be taken. That's why
this is how the strategy works.
Well there is one more thing in it, there is a watch
list, suppose you have a watch list in which
you have placed 50 symbols
and within these 50 symbols you want that whatever
trade comes, that is, in whichever condition there
is an indicator, suppose this is a super trend
indicator. I was telling you about the separate video for this,
now I am just briefing you a little bit.
Super Trend
Indicator: You want that whenever the conditions match,
in whichever symbol, in whichever pair,
my order should be placed automatically. So,
when you create alerts for this thing in your watch list,
here you
get an option "Make Alerts" and here you
create alerts in the watch list,
like I went here and took Super Trend
and said, "Brother, whenever long comes
in any of these symbols, my trade should be placed." If you
put fully elbow long here then
your order will be placed automatically. Just for this, the
symbol that you have here,
inside the centox that we are creating, we are deciding beforehand
which symbol has to be inserted, that does not have to be
inserted. For this, ticker is used
and for which ticker you have to use
, what parameters you have to use, for that you can
WhatsApp or call me, I will
tell you if you want to work with the watch list.
But for this, I will
make a dedicated video. It's a bit of a long
concept. For now I have told you
how to trade with Coin DCX. It
is quite fast. If you want to go
with Indian Crypto Exchange with Coin DC
then you can go with it.
Thank you for watching this video and bye.
