YouTube2Text

Hedging Strategy and whole Mathematics behind it — Transcript

by EcoEngineering · 2,296 words · 462 segments · language en · Watch on YouTube

Full transcript

  1. 0:01hello guys i hope you all are doing well
  2. 0:04in this video i'm going to teach you how
  3. 0:06to use hedging strategy this video
  4. 0:09contains
  5. 0:10two different section the sections the
  6. 0:12first section is about the hedging
  7. 0:15strategy itself and i explain how it
  8. 0:17works uh the second section is about the
  9. 0:21math
  10. 0:22behind the hedging strategy and how
  11. 0:25uh to use the mathematic to calculate
  12. 0:27the lot size for each trade in each
  13. 0:30iteration
  14. 0:32so if you are already familiar with
  15. 0:35hedging strategy and you
  16. 0:38are only interested in the mathematics
  17. 0:41subject i suggest you to skip the video
  18. 0:44to the minute and second that you can
  19. 0:47see
  20. 0:48below in this video
  21. 0:51if this is the first time watching our
  22. 0:52video in our channel we speak about the
  23. 0:55algorithmic trading and
  24. 0:57different kind of strategies for
  25. 0:58cryptocurrencies forex and any other
  26. 1:01markets if you are interested in this
  27. 1:03subject i would really appreciate if you
  28. 1:06uh subscribe our channel and at the end
  29. 1:08of the video if you like it please hit
  30. 1:10the like button so uh youtube algorithm
  31. 1:13will introduce us to
  32. 1:15others who are interested in these
  33. 1:17subjects uh and if you have any
  34. 1:19suggestion for me any subjects that you
  35. 1:22want me to cover i would really
  36. 1:24appreciate if you
  37. 1:26leave a comment and
  38. 1:28give me your feedback in the comments i
  39. 1:30will read them and we'll consider them
  40. 1:33for future videos i wish you enjoyed
  41. 1:35this video and stay with us until the
  42. 1:37end
  43. 1:44imagine that the price for one share or
  44. 1:47one pair going like that and based on
  45. 1:49our strategy we decided to send a buy
  46. 1:51order here
  47. 1:53in this price and we send one lot by
  48. 1:56order uh then normally we have a take
  49. 2:00profit here uh we consider it as a 60
  50. 2:03pips
  51. 2:04and we have a stop loss that
  52. 2:06based on the fact that here we consider
  53. 2:09the risk to reward three
  54. 2:11uh it would be 20 pips lower than entry
  55. 2:14points uh normally when the price hit
  56. 2:17the establish we close the order
  57. 2:20and we lose money this is the normal way
  58. 2:24of trading but
  59. 2:25when we are using the hedging technique
  60. 2:28uh i don't call it strategy because i
  61. 2:31consider it as a technique to
  62. 2:34close the orders not uh opening a trade
  63. 2:38so
  64. 2:39uh with hedging techniques instead of
  65. 2:41closing
  66. 2:42uh
  67. 2:43the order when it hits the stop loss
  68. 2:47we have
  69. 2:48another line
  70. 2:50which
  71. 2:51in this case
  72. 2:53instead of closing the order we open
  73. 2:55another order which is in contrast with
  74. 2:59the first all order when it is by here
  75. 3:02we enter
  76. 3:05with a cell and we decide to enter with
  77. 3:081.5 large and as i mentioned how to
  78. 3:11calculate these lot size i would explain
  79. 3:14in next section here i only
  80. 3:17explain how the
  81. 3:19hedging techniques work
  82. 3:21and then i explain how to calculate
  83. 3:23these
  84. 3:24lots for each iteration so
  85. 3:28and
  86. 3:29after opening another order
  87. 3:33in the other direction we have another
  88. 3:36line here
  89. 3:38this line would be take profit for the
  90. 3:41sales orders
  91. 3:43and establish for
  92. 3:45buy orders and the line here
  93. 3:48would be take profit for buy orders and
  94. 3:51stop loss for
  95. 3:53sell orders we call these two line the
  96. 3:56blue one would be by lines which
  97. 3:58whenever we cross it
  98. 4:00uh based on its iteration we will buy
  99. 4:04and send a buy order and whenever we
  100. 4:06cross
  101. 4:07uh the red line which is uh
  102. 4:09corresponding to the sell line we would
  103. 4:11send
  104. 4:12a sell order so
  105. 4:15and both of these uh sections are 60
  106. 4:18pips and here it is 20
  107. 4:20pips but uh this is just an
  108. 4:23example and it can be any pips just we
  109. 4:27must do it based on our risk to reward
  110. 4:30so
  111. 4:31now
  112. 4:33uh imagine that
  113. 4:36in this case price goes in our favor and
  114. 4:40go down and down and down and hit these
  115. 4:42cells
  116. 4:43take profit
  117. 4:45and by establish when we hit it
  118. 4:49we close all open orders whether they
  119. 4:51are sell orders or
  120. 4:54buy orders and in this case
  121. 4:57uh what would be our profit
  122. 4:59first
  123. 5:00uh we opened
  124. 5:03uh we opened 1.5 lot
  125. 5:06sell order here which it gained 60 pips
  126. 5:09and it would be 60
  127. 5:12multiply 1.5 lot
  128. 5:14and plus
  129. 5:16minus 80 multiply one why because we
  130. 5:19have a buy order which
  131. 5:21its value is one lot and it has lost
  132. 5:2680 pips so it would be minus 80 multiply
  133. 5:31one and the result would be 10 units
  134. 5:36so
  135. 5:37in the normal way of trading when we hit
  136. 5:41the take but the establish actually we
  137. 5:43would have lost
  138. 5:44uh money but in this case we gained even
  139. 5:48a little amount of money although
  140. 5:50the purpose of this strategy is not
  141. 5:52gaining money it is
  142. 5:54preventing to stop to losing money
  143. 5:57so
  144. 5:59now imagine that after
  145. 6:01this iteration
  146. 6:04price does not go in our favor and it
  147. 6:07again
  148. 6:08goes back and go higher
  149. 6:11and again hit this by lines
  150. 6:15in this case
  151. 6:16we send another by order for example
  152. 6:19here 1.1 lot and i explain how to
  153. 6:21calculate this lot here it is not
  154. 6:24complicated it is simple
  155. 6:27and
  156. 6:28after sending this 1.1 by lot the ma the
  157. 6:32price goes in our favor
  158. 6:35and hit the buys take profit or sells
  159. 6:39establish
  160. 6:41what would be our profit in this case
  161. 6:43here we have two open buy orders one of
  162. 6:46them is one lot and other is
  163. 6:481.1 and both of them gain 60 pips
  164. 6:53plus
  165. 6:54minus 1.5 multiply 80
  166. 6:57and the result would be 6 unit and still
  167. 7:01still
  168. 7:02we would gain
  169. 7:03some money
  170. 7:05again the next iteration if
  171. 7:08the price does not go in our favor and
  172. 7:10goes back and hit
  173. 7:12the cell lines we again send another
  174. 7:15sell order with 1.6 lot and when it
  175. 7:19continues in our favor
  176. 7:22our profit would be
  177. 7:2580
  178. 7:2618 units
  179. 7:28so basically this is how the
  180. 7:31hedging technique
  181. 7:32works
  182. 7:33theoretically these techniques help you
  183. 7:36never lose money but it's not possible
  184. 7:38to to
  185. 7:39hedge forever and in one point because
  186. 7:43you are paying spread you are paying
  187. 7:45commissions you are playing paying swaps
  188. 7:48in one point uh your margin would be
  189. 7:51limited and uh the broker will not
  190. 7:54uh or would not let you to send another
  191. 7:58order
  192. 7:59so it is very important that you know
  193. 8:02that whenever you are using these
  194. 8:04techniques to close your orders actually
  195. 8:06you are risking
  196. 8:08your whole balance for being margin
  197. 8:12called
  198. 8:13although it is rare to be margin call
  199. 8:17but it would happen some things in these
  200. 8:19markets may not happen in three years
  201. 8:22but once they happen
  202. 8:24they will margin call your account so
  203. 8:28you must be very careful and uh
  204. 8:31of course it's better to start
  205. 8:33hedging with very small lots your when
  206. 8:36you are using these techniques your
  207. 8:38first order must be very small
  208. 8:42uh it is important to notice that uh for
  209. 8:45us it is better to
  210. 8:47uh only open one order and the first
  211. 8:49order that we open based on our strategy
  212. 8:51hit the take profit because in this case
  213. 8:54we would gain the maximum amount of
  214. 8:56money but when we are implementing
  215. 8:58actually the
  216. 9:00hedging strategy hedging techniques to
  217. 9:02close the order it means that our our
  218. 9:04first
  219. 9:05uh pre-consumptions regarding
  220. 9:08the entry points and the signal that
  221. 9:11gave us to send the order was not true
  222. 9:13and we were wrong so
  223. 9:16we don't want to gain money we just want
  224. 9:18to close the orders without losing money
  225. 9:27so in this section i teach you how to
  226. 9:29calculate the lot size for each
  227. 9:32iteration in
  228. 9:33edging strategy
  229. 9:35to this point we know that we have a
  230. 9:37byline
  231. 9:38bias line and sales lines here
  232. 9:41and two
  233. 9:43different
  234. 9:44line
  235. 9:46that
  236. 9:47here this line would be the take profit
  237. 9:49for buys orders and establish for
  238. 9:52sales orders and uh vice versa here we
  239. 9:55this line would be the take private for
  240. 9:57all cells order and stop us for by
  241. 10:00orders this distance would be a as you
  242. 10:03can see in the formula the a
  243. 10:06would be it can be anything and it
  244. 10:09doesn't matter because
  245. 10:10uh you have a division that all a's
  246. 10:13would be simplified together but you can
  247. 10:14see
  248. 10:15it
  249. 10:17in the
  250. 10:18next section
  251. 10:20and this distance would be risk to
  252. 10:22reward multiply a
  253. 10:26for the previous example we considered
  254. 10:28here 20 pips and here
  255. 10:30three
  256. 10:31times
  257. 10:33bigger and it would it was
  258. 10:3660 but
  259. 10:38generally
  260. 10:39it is rich to reward multiply a and here
  261. 10:43again it is risk to reward multiply
  262. 10:46a
  263. 10:47so if the price goes goes like that and
  264. 10:49we enter here with
  265. 10:51uh the lot size of first buy
  266. 10:56and price goes down and we enter with
  267. 10:59the lot size of
  268. 11:01first cell
  269. 11:03and
  270. 11:04uh when the price goes in our
  271. 11:07favor
  272. 11:08in order to stay in profit this
  273. 11:10non-equation must be
  274. 11:12true what is that
  275. 11:14uh lot size of first cell multiply
  276. 11:19this this distance which is rich to
  277. 11:21reward multiply a
  278. 11:24must be greater than
  279. 11:26lot size off
  280. 11:27first
  281. 11:28by
  282. 11:30multiply
  283. 11:31its distance which is this distance
  284. 11:35this distance plus this one a plus risk
  285. 11:39reward multiply a and then
  286. 11:43uh
  287. 11:43it would become this one here a plus
  288. 11:46history what a divided to reach through
  289. 11:48our multiply a the a would be simplified
  290. 11:51together and ls one must be
  291. 11:54greater than risk to reward plus one
  292. 11:57divided risk reward multiply lot size of
  293. 12:03uh first
  294. 12:04by
  295. 12:06so this is
  296. 12:07the final equation
  297. 12:08for the first iteration
  298. 12:11uh
  299. 12:12as an example
  300. 12:14if the
  301. 12:15lot size of first by b1
  302. 12:18and the risk to reward b3 then based on
  303. 12:21this formula lot size of first
  304. 12:24cell must be greater than
  305. 12:271.34
  306. 12:29and
  307. 12:30in order to cover the
  308. 12:32commission spread and swab
  309. 12:35i usually multiply it to 1.1 so it would
  310. 12:40be
  311. 12:40uh
  312. 12:4210 percent higher
  313. 12:44and lot size of first cell would be
  314. 12:471.48
  315. 12:48of course you can use for example uh
  316. 12:51your
  317. 12:52percentage maybe 1.2 or
  318. 12:551.05 five percent higher than that but i
  319. 12:58prefer based on my
  320. 13:00broker i prefer to multiply it by
  321. 13:031.1 and
  322. 13:05and consider it 10
  323. 13:07higher so
  324. 13:09now we continue our
  325. 13:11uh
  326. 13:12equation
  327. 13:14imagine that we heated this line several
  328. 13:17times
  329. 13:18and here it would be the large size of
  330. 13:20first buy let's say the first cell lot
  331. 13:22size of second buy plus size of second
  332. 13:25cell lot size of third
  333. 13:28bi
  334. 13:29and here lot size of
  335. 13:33n minus 1 cell lot size of
  336. 13:37ends
  337. 13:38by
  338. 13:39here is the lot size of
  339. 13:42ends sell
  340. 13:44so
  341. 13:46we continue we write the calculation
  342. 13:49again
  343. 13:50in order to stay in profit
  344. 13:54the sum of
  345. 13:56all cells lie a lot
  346. 13:59multiply
  347. 14:0060 or risk to reward multiply a here i
  348. 14:04wrote 60 to be
  349. 14:06uh to seems uh simple
  350. 14:08more
  351. 14:09simple
  352. 14:11must be greater than
  353. 14:13the sum of by lots
  354. 14:16multiply 80 but of course
  355. 14:19here is risk to reward multiply a
  356. 14:23and here is a plus
  357. 14:26risk to reward multiply a
  358. 14:31so
  359. 14:35it would change to this non-equation
  360. 14:38which it means
  361. 14:41lot size of ends l must be plus lot size
  362. 14:44of my n minus one
  363. 14:47cells
  364. 14:48plus lot size of second cells plus lot
  365. 14:51size of first cells
  366. 14:53must be greater than risk to reward plus
  367. 14:56one
  368. 14:57divided which to reward
  369. 14:59multiply
  370. 15:01lot size of ends by plus let's size of
  371. 15:06third by
  372. 15:08plus let's size of second by and plus
  373. 15:10the size of first
  374. 15:12by
  375. 15:15and
  376. 15:20if
  377. 15:21we transmit this practice here because
  378. 15:25all of these lot size are known for us
  379. 15:28because we calculated them in previous
  380. 15:31iterations
  381. 15:32except
  382. 15:33this one
  383. 15:35lot size of ends
  384. 15:38sell
  385. 15:39this one is known this one is known this
  386. 15:41one is all of them are known because we
  387. 15:42have calculated them in previous
  388. 15:44iterations so we transmit the
  389. 15:46parenthesis here we want to find out
  390. 15:50the value of this lot size so
  391. 15:53lot size of ins
  392. 15:56cell
  393. 15:57must be equal to
  394. 16:00risk to reward
  395. 16:02plus one
  396. 16:03divided risk reward
  397. 16:07multiply the sum of open buys
  398. 16:11lots all the buy slots
  399. 16:13which are open right now
  400. 16:16minus
  401. 16:17the sum of
  402. 16:18open sales lot
  403. 16:21here
  404. 16:22this blue one means the sum of all of
  405. 16:25these lots
  406. 16:26and the red one means the sum of all
  407. 16:28these lots
  408. 16:32and in order to cover the commission and
  409. 16:35the spreads and swaps
  410. 16:38i multiply whole of this equation
  411. 16:41by
  412. 16:421.1
  413. 16:44so consider the lot size 10 percent
  414. 16:47higher
  415. 16:48and this is the final formula for
  416. 16:51calculating the lot size of
  417. 16:55uh the cell
  418. 16:58and if
  419. 16:59instead of
  420. 17:01calculating the cell lot size we are
  421. 17:04crossing the bias line and we want to
  422. 17:06calculate the by
  423. 17:08the lot size of by order
  424. 17:12the formula
  425. 17:13would be
  426. 17:14exactly vice versa and
  427. 17:17uh the lot size of n spy would be raised
  428. 17:21to r plus one multi divided by risk
  429. 17:24reward
  430. 17:25uh multiply
  431. 17:27sum of open cells lots
  432. 17:30minus sum of open buys
  433. 17:33lots
  434. 17:34and in order to cover the expenses we
  435. 17:36multiply them by
  436. 17:391.1 to consider it 10 percent higher
  437. 17:44so i used this formula to implement my
  438. 17:47expert advisor and use algorithmic
  439. 17:49trading
  440. 17:51to implement the hedging strategy
  441. 17:53because hedging strategy is a little
  442. 17:55sensitive and
  443. 17:57it's not efficient to sit down in front
  444. 17:59of the your computer and
  445. 18:02uh always check whether it's time to
  446. 18:05open the next order or not and it must
  447. 18:07be done
  448. 18:08by algorithmic trading
  449. 18:11this formula is
  450. 18:12the formal that i
  451. 18:14always use in hedging
  452. 18:17techniques i hope you enjoyed this video
  453. 18:19please
  454. 18:20do not forget
  455. 18:22to introduce us to your friends those
  456. 18:24who are interested in these subjects and
  457. 18:26if you like the video please hit the
  458. 18:28like button so the youtube algorithm
  459. 18:31would introduce us to others who are
  460. 18:33interested in this subject
  461. 18:36i wish you had a good
  462. 18:38day goodbye

About this transcript

This page contains the full transcript of Hedging Strategy and whole Mathematics behind it by EcoEngineering, generated from the public captions YouTube serves with the video. The transcript has 2,296 words across 462 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.